From 92e67cc5a3d17fe33a1af66961d7e70873572741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 4 Sep 2014 19:53:15 +0200 Subject: text-motion: fix find_char_prev --- text-motions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3