diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-27 17:56:16 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-27 17:56:16 +0000 |
| commit | c1bbb64a4d87f8fb4d5884cccb49e47af462b45a (patch) | |
| tree | b46a9ba6fd1f0934b2e6c4139d290c2a31dfa074 | |
| parent | search: search_update() is always called at end of search_input() (diff) | |
search: return early after committing a search
This fixes an issue where the selection was finalized, but then
cleared.
| -rw-r--r-- | search.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |
