Fix M-f ordering

master
June McEnroe 2022-02-18 22:40:16 -05:00
parent 28a27a2c0f
commit 0036e6e9f0
1 changed files with 1 additions and 1 deletions

2
edit.c
View File

@ -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;