mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: find_next(): correctly wrap row number
This commit is contained in:
parent
5e621bbdb9
commit
0945e71572
1 changed files with 1 additions and 1 deletions
2
search.c
2
search.c
|
|
@ -338,7 +338,7 @@ search_find_next(struct terminal *term)
|
|||
|
||||
for (size_t i = 0; i < term->search.len;) {
|
||||
if (end_col >= term->cols) {
|
||||
end_row++;
|
||||
end_row = (end_row + 1) & (term->grid->num_rows - 1);
|
||||
end_col = 0;
|
||||
|
||||
if (has_wrapped_around(term, end_row))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue