mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-07 04:06:07 -05:00
search: match_to_end_of_word(): use has_wrapped_around() while extracting text
This commit is contained in:
parent
11f7a6616b
commit
1c8bdf34ce
1 changed files with 3 additions and 1 deletions
4
search.c
4
search.c
|
|
@ -472,7 +472,9 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only)
|
|||
if (++pos.col >= term->cols) {
|
||||
pos.row = (pos.row + 1) & (term->grid->num_rows - 1);
|
||||
pos.col = 0;
|
||||
row = term->grid->rows[pos.row];
|
||||
|
||||
if (has_wrapped_around(term, pos.row))
|
||||
break;
|
||||
}
|
||||
if (!extract_one(term, row, &row->cells[pos.col], pos.col, ctx))
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue