tFix search wrap - ve - a minimal text editor (work in progress)
HTML git clone git://src.adamsgaard.dk/ve
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 2ef5da8cd8f1097598e45230ee0ff00b60a29cc4
DIR parent 8c8c86df4be5edcd09bb6faf4a6008de53b9df25
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 7 Aug 2019 12:51:56 +0200
Fix search wrap
Diffstat:
M find.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/find.c b/find.c
t@@ -53,10 +53,10 @@ editor_find_next_occurence(int opposite_direction)
/* E.row_offset = E.num_rows; */ /* put line to top of screen */
} else {
/* from other end of file until cursor */
- editor_set_status_message("wrapping search");
for (y = (y_inc == +1) ? 0 : E.num_rows - 1;
y != E.cursor_y + y_inc;
y += y_inc) {
+ row = &E.row[y];
match = strstr(row->rchars, E.find_query);
if (match)
break;