mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: match iterator: handle overlapping matches
This commit is contained in:
parent
2085621bf4
commit
529da8e238
1 changed files with 2 additions and 2 deletions
4
search.c
4
search.c
|
|
@ -485,8 +485,8 @@ search_matches_next(struct search_match_iterator *iter)
|
|||
iter->start.col = 0;
|
||||
} else {
|
||||
/* Continue at next column, next time */
|
||||
iter->start.row = match.end.row;
|
||||
iter->start.col = match.end.col + 1;
|
||||
iter->start.row = match.start.row;
|
||||
iter->start.col = match.start.col + 1;
|
||||
|
||||
if (match.start.row == term->search.match.row &&
|
||||
match.start.col == term->search.match.col)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue