summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-03-03 13:49:40 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-03-03 13:49:40 -0500
commitc59429d28718c1aae581f023d33466580118b0fc (patch)
tree3fc7abde6ab8a1d22f2856c490e9aaf3d8b06944 /command.c
parentb061785c4a18e668e4328680d75fde9412381b0e (diff)
speed up startup, improve left/right while selecting
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/command.c b/command.c
index b0b9df3..9470dc0 100644
--- a/command.c
+++ b/command.c
@@ -125,6 +125,8 @@ void command_execute(Ted *ted, Command c, i64 argument) {
find_next(ted);
else
find_prev(ted);
+ } else if (buffer) {
+ buffer_newline(buffer);
}
} else if (buffer) {
buffer_newline(buffer);