search: discard canceled compose sequences

This commit is contained in:
Daniel Eklöf 2019-12-03 19:21:16 +01:00
parent a34deabcc9
commit 694d84a9e9
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

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