mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: cancel selection and clear match stats when we don't match
This commit is contained in:
parent
c3b5fa82be
commit
2895f8fa10
1 changed files with 5 additions and 0 deletions
5
search.c
5
search.c
|
|
@ -173,6 +173,11 @@ search_update(struct terminal *term)
|
|||
|
||||
start_col = term->cols - 1;
|
||||
}
|
||||
|
||||
/* No match */
|
||||
term->search.match = (struct coord){-1, -1};
|
||||
term->search.match_len = 0;
|
||||
selection_cancel(term);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue