From c1bbb64a4d87f8fb4d5884cccb49e47af462b45a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 27 Aug 2019 19:56:16 +0200 Subject: [PATCH] search: return early after committing a search This fixes an issue where the selection was finalized, but then cleared. --- search.c | 1 + 1 file changed, 1 insertion(+) diff --git a/search.c b/search.c index 30edad2e..48b45b9a 100644 --- a/search.c +++ b/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) {