search: return early after committing a search

This fixes an issue where the selection was finalized, but then
cleared.
This commit is contained in:
Daniel Eklöf 2019-08-27 19:56:16 +02:00
parent d1974913f7
commit c1bbb64a4d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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) {