aboutsummaryrefslogtreecommitdiff
path: root/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'search.c')
-rw-r--r--search.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/search.c b/search.c
index f6d377ea..88bc88aa 100644
--- a/search.c
+++ b/search.c
@@ -371,6 +371,9 @@ find_next(struct terminal *term, enum search_direction direction,
i += additional_chars;
match_len += additional_chars;
match_end_col++;
+
+ while (match_row->cells[match_end_col].wc > CELL_SPACER)
+ match_end_col++;
}
if (match_len != term->search.len) {