mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: matches_next: assert start’s ‘col’ is valid
This commit is contained in:
parent
082e242ce5
commit
1d48b7b77c
1 changed files with 2 additions and 0 deletions
2
search.c
2
search.c
|
|
@ -548,6 +548,8 @@ search_matches_next(struct search_match_iterator *iter)
|
|||
else {
|
||||
xassert(iter->start.row >= 0);
|
||||
xassert(iter->start.row < term->rows);
|
||||
xassert(iter->start.col >= 0);
|
||||
xassert(iter->start.col < term->cols);
|
||||
|
||||
struct coord abs_start = iter->start;
|
||||
abs_start.row = grid_row_absolute_in_view(grid, abs_start.row);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue