mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-14 05:33:59 -04:00
search: discard canceled compose sequences
This commit is contained in:
parent
a34deabcc9
commit
694d84a9e9
1 changed files with 2 additions and 0 deletions
2
search.c
2
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(
|
count = xkb_compose_state_get_utf8(
|
||||||
term->wl->kbd.xkb_compose_state, (char *)buf, sizeof(buf));
|
term->wl->kbd.xkb_compose_state, (char *)buf, sizeof(buf));
|
||||||
xkb_compose_state_reset(term->wl->kbd.xkb_compose_state);
|
xkb_compose_state_reset(term->wl->kbd.xkb_compose_state);
|
||||||
|
} else if (compose_status == XKB_COMPOSE_CANCELLED) {
|
||||||
|
count = 0;
|
||||||
} else {
|
} else {
|
||||||
count = xkb_state_key_get_utf8(
|
count = xkb_state_key_get_utf8(
|
||||||
term->wl->kbd.xkb_state, key, (char *)buf, sizeof(buf));
|
term->wl->kbd.xkb_state, key, (char *)buf, sizeof(buf));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue