about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2022-02-18 22:40:16 -0500
committerJune McEnroe <june@causal.agency>2022-02-18 22:40:16 -0500
commit0036e6e9f093c623f87def43b45cb87efb2823e6 (patch)
tree871d8c859a74e8495a94634c12f830b65326d21a
parentMove sandman build to scripts/Makefile (diff)
downloadcatgirl-0036e6e9f093c623f87def43b45cb87efb2823e6.tar.gz
catgirl-0036e6e9f093c623f87def43b45cb87efb2823e6.zip
Fix M-f ordering
Diffstat (limited to '')
-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;