From d8e0d1b2fe2bfc4a327d8056d6d63e7b58435632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 18 Sep 2022 01:07:47 +0200 Subject: Make M-f behave like it does in Readline --- line-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3