diff options
Diffstat (limited to '')
-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; |