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
-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;
77a8257ba6aafd72f6c9aa&follow=1'>Add gztell(3) to gzseek.3June McEnroe 2018-11-13Add gzseek.3June McEnroe 2018-11-13Add gzflush.3June McEnroe 2018-11-13Fix spacing after parenthetical sentencesJune McEnroe 2018-11-13Add gzungetc.3June McEnroe 2018-11-13Add gzgetc.3June McEnroe 2018-11-13Add gzputc.3June McEnroe 2018-11-13Add gzgets.3June McEnroe 2018-11-13Add gzputs.3June McEnroe 2018-11-13Add gzprintf.3June McEnroe 2018-11-13Add gzfwrite.3June McEnroe 2018-11-13Add gzwrite.3June McEnroe 2018-11-12Add gzfread.3June McEnroe 2018-11-12Add gzread.3June McEnroe 2018-11-12Add gzsetparams.3June McEnroe 2018-11-12Add gzbuffer.3June McEnroe 2018-11-12Add gzdopen to gzopen.3June McEnroe 2018-11-12Add gzopen.3June McEnroe 2018-11-12Add inflateBackEnd.3June McEnroe 2018-11-12Add inflateBack.3June McEnroe 2018-11-12Add inflateBackInit.3June McEnroe 2018-11-11Add inflateGetHeader.3June McEnroe 2018-11-11Add inflateMark.3June McEnroe 2018-11-11Add inflatePrime.3June McEnroe 2018-11-11Add inflateReset.3June McEnroe 2018-11-11Add inflateCopy.3June McEnroe 2018-11-11Add inflateSync.3June McEnroe 2018-11-11Add inflateGetDictionary.3June McEnroe 2018-11-11Add inflateSetDictionary.3June McEnroe 2018-11-11Add inflateInit2.3June McEnroe