diff options
-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; } |