mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-14 08:21:27 -04:00
search: don’t crash when we don’t have any XKB compose state
This commit is contained in:
parent
ee2b0cb21f
commit
11829931a7
2 changed files with 5 additions and 2 deletions
5
search.c
5
search.c
|
|
@ -798,8 +798,9 @@ search_input(struct seat *seat, struct terminal *term, uint32_t key,
|
|||
{
|
||||
LOG_DBG("search: input: sym=%d/0x%x, mods=0x%08x", sym, sym, mods);
|
||||
|
||||
enum xkb_compose_status compose_status = xkb_compose_state_get_status(
|
||||
seat->kbd.xkb_compose_state);
|
||||
enum xkb_compose_status compose_status = seat->kbd.xkb_compose_state != NULL
|
||||
? xkb_compose_state_get_status(seat->kbd.xkb_compose_state)
|
||||
: XKB_COMPOSE_NOTHING;
|
||||
|
||||
bool update_search_result = false;
|
||||
bool redraw = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue