Fix M-f ordering
parent
28a27a2c0f
commit
0036e6e9f0
2
edit.c
2
edit.c
|
@ -223,8 +223,8 @@ void edit(uint id, enum Edit op, wchar_t ch) {
|
||||||
while (pos && isword(buf[pos - 1])) pos--;
|
while (pos && isword(buf[pos - 1])) pos--;
|
||||||
}
|
}
|
||||||
break; case EditNextWord: {
|
break; case EditNextWord: {
|
||||||
while (pos < len && !isword(buf[pos])) pos++;
|
|
||||||
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;
|
break; case EditDeleteHead: delete(true, 0, pos); pos = 0;
|
||||||
|
|
Loading…
Reference in New Issue