aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-04 19:53:15 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-04 19:53:15 +0200
commit92e67cc5a3d17fe33a1af66961d7e70873572741 (patch)
tree018b237a4cfa75d15230455d83f71fd419c9764e
parentd4dfde906022618bd9e0cbcd3559625186f77407 (diff)
downloadvis-92e67cc5a3d17fe33a1af66961d7e70873572741.tar.gz
vis-92e67cc5a3d17fe33a1af66961d7e70873572741.tar.xz
text-motion: fix find_char_prev
-rw-r--r--text-motions.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text-motions.c b/text-motions.c
index f499d92..666e9db 100644
--- a/text-motions.c
+++ b/text-motions.c
@@ -52,7 +52,7 @@ size_t text_find_char_prev(Text *txt, size_t pos, const char *s, size_t len) {
} else {
matched = len - 1;
}
- text_iterator_byte_next(&it, NULL);
+ text_iterator_byte_prev(&it, NULL);
}
return it.pos;
}