mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: match_to_end_of_word(): we always extend the selection with at least one character
This commit is contained in:
parent
7cf0e2aae4
commit
11f7a6616b
1 changed files with 1 additions and 3 deletions
4
search.c
4
search.c
|
|
@ -456,13 +456,11 @@ search_match_to_end_of_word(struct terminal *term, bool spaces_only)
|
|||
|
||||
xassert(term->grid->rows[new_end.row] != NULL);
|
||||
|
||||
/* Find next word boundary */
|
||||
new_end.row -= term->grid->view;
|
||||
selection_find_word_boundary_right(term, &new_end, spaces_only);
|
||||
new_end.row += term->grid->view;
|
||||
|
||||
if (new_end.row == old_end.row && new_end.col == old_end.col)
|
||||
return;
|
||||
|
||||
struct coord pos = old_end;
|
||||
const struct row *row = term->grid->rows[pos.row];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue