mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
search: return early after committing a search
This fixes an issue where the selection was finalized, but then cleared.
This commit is contained in:
parent
d1974913f7
commit
c1bbb64a4d
1 changed files with 1 additions and 0 deletions
1
search.c
1
search.c
|
|
@ -204,6 +204,7 @@ search_input(struct terminal *term, uint32_t key, xkb_keysym_t sym, xkb_mod_mask
|
|||
else if (mods == 0 && sym == XKB_KEY_Return) {
|
||||
selection_finalize(term, term->input_serial);
|
||||
search_cancel(term);
|
||||
return;
|
||||
}
|
||||
|
||||
else if (mods == ctrl && sym == XKB_KEY_r) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue