diff options
author | June McEnroe | 2022-02-18 22:40:16 -0500 |
---|---|---|
committer | June McEnroe | 2022-02-18 22:40:16 -0500 |
commit | 0036e6e9f093c623f87def43b45cb87efb2823e6 (patch) | |
tree | 871d8c859a74e8495a94634c12f830b65326d21a | |
parent | 28a27a2c0fdbd05328a4c30fbb63a4e3c6e12432 (diff) |
Fix M-f ordering
-rw-r--r-- | edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |