summary refs log tree commit diff
path: root/edit.c
diff options
context:
space:
mode:
authorJune McEnroe2022-02-18 22:40:16 -0500
committerJune McEnroe2022-02-18 22:40:16 -0500
commit0036e6e9f093c623f87def43b45cb87efb2823e6 (patch)
tree871d8c859a74e8495a94634c12f830b65326d21a /edit.c
parent28a27a2c0fdbd05328a4c30fbb63a4e3c6e12432 (diff)
Fix M-f ordering
Diffstat (limited to 'edit.c')
-rw-r--r--edit.c2
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;