aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vis.c b/vis.c
index a4917e9..7d3ad7c 100644
--- a/vis.c
+++ b/vis.c
@@ -740,7 +740,7 @@ static size_t mark_line_goto(File *txt, size_t pos) {
static size_t to(Text *txt, size_t pos) {
char c;
- size_t hit = text_find_next(txt, pos+1, vis->search_char);
+ size_t hit = text_line_find_next(txt, pos+1, vis->search_char);
if (!text_byte_get(txt, hit, &c) || c != vis->search_char[0])
return pos;
return hit;
@@ -757,7 +757,7 @@ static size_t to_left(Text *txt, size_t pos) {
char c;
if (pos == 0)
return pos;
- size_t hit = text_find_prev(txt, pos-1, vis->search_char);
+ size_t hit = text_line_find_prev(txt, pos-1, vis->search_char);
if (!text_byte_get(txt, hit, &c) || c != vis->search_char[0])
return pos;
return hit;