From 0036e6e9f093c623f87def43b45cb87efb2823e6 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Fri, 18 Feb 2022 22:40:16 -0500 Subject: Fix M-f ordering --- edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'edit.c') diff --git a/edit.c b/edit.c index 9aa1c86..66b5302 100644 --- a/edit.c +++ b/edit.c @@ -223,8 +223,8 @@ void edit(uint id, enum Edit op, wchar_t ch) { while (pos && isword(buf[pos - 1])) pos--; } break; case EditNextWord: { - while (pos < len && !isword(buf[pos])) pos++; while (pos < len && isword(buf[pos])) pos++; + while (pos < len && !isword(buf[pos])) pos++; } break; case EditDeleteHead: delete(true, 0, pos); pos = 0; -- cgit 1.4.1-2-gfad0