vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit b78d1aeafce283d369e6c83db3683f1cadbda813 parent 71b0b52ec62b80b9905876b2c3de78a87bd7c33f Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 4 Sep 2014 19:53:15 +0200 text-motion: fix find_char_prev Diffstat:
| M | text-motions.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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; }