search: do not emit composing keys

When we are in the composing state for XCompose key sequences, we
should not add the compose component keys to the search buffer.
This commit is contained in:
Ronan Pigott 2025-10-31 15:11:53 -07:00
parent 5ae4955e83
commit 19fd811ac6

View file

@ -1484,7 +1484,8 @@ search_input(struct seat *seat, struct terminal *term,
count = xkb_compose_state_get_utf8(
seat->kbd.xkb_compose_state, (char *)buf, sizeof(buf));
xkb_compose_state_reset(seat->kbd.xkb_compose_state);
} else if (compose_status == XKB_COMPOSE_CANCELLED) {
} else if (compose_status == XKB_COMPOSE_CANCELLED ||
compose_status == XKB_COMPOSE_COMPOSING) {
count = 0;
} else {
count = xkb_state_key_get_utf8(