From 694d84a9e903114d242fbc3ea0c845b8a35010f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 3 Dec 2019 19:21:16 +0100 Subject: [PATCH] search: discard canceled compose sequences --- search.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/search.c b/search.c index 8db11bd3..72101030 100644 --- a/search.c +++ b/search.c @@ -474,6 +474,8 @@ search_input(struct terminal *term, uint32_t key, xkb_keysym_t sym, xkb_mod_mask count = xkb_compose_state_get_utf8( term->wl->kbd.xkb_compose_state, (char *)buf, sizeof(buf)); xkb_compose_state_reset(term->wl->kbd.xkb_compose_state); + } else if (compose_status == XKB_COMPOSE_CANCELLED) { + count = 0; } else { count = xkb_state_key_get_utf8( term->wl->kbd.xkb_state, key, (char *)buf, sizeof(buf));