diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-09-18 01:07:47 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-09-18 01:07:47 +0200 |
commit | d8e0d1b2fe2bfc4a327d8056d6d63e7b58435632 (patch) | |
tree | 0bb420700c3112757da8f3fdb0cd133808c7479e | |
parent | 5cda848f9419c77782008dabe6dc7cba9dc34396 (diff) | |
download | nncmpp-d8e0d1b2fe2bfc4a327d8056d6d63e7b58435632.tar.gz nncmpp-d8e0d1b2fe2bfc4a327d8056d6d63e7b58435632.tar.xz nncmpp-d8e0d1b2fe2bfc4a327d8056d6d63e7b58435632.zip |
Make M-f behave like it does in Readline
-rw-r--r-- | line-editor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/line-editor.c b/line-editor.c index 0ae26f9..4c37a92 100644 --- a/line-editor.c +++ b/line-editor.c @@ -185,8 +185,8 @@ line_editor_action (struct line_editor *self, enum line_editor_action action) if (self->point + 1 > (int) self->len) return false; int i = self->point; - while (i < (int) self->len && self->line[i] != ' ') i++; while (i < (int) self->len && self->line[i] == ' ') i++; + while (i < (int) self->len && self->line[i] != ' ') i++; self->point = i; return true; } |