mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
search: don't update/refresh match when modifier keys are pressed
This commit is contained in:
parent
b01431e38f
commit
8626b4bc1a
1 changed files with 3 additions and 0 deletions
3
search.c
3
search.c
|
|
@ -662,6 +662,9 @@ search_input(struct seat *seat, struct terminal *term, uint32_t key,
|
||||||
seat->kbd.xkb_state, key, (char *)buf, sizeof(buf));
|
seat->kbd.xkb_state, key, (char *)buf, sizeof(buf));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (count == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
const char *src = (const char *)buf;
|
const char *src = (const char *)buf;
|
||||||
mbstate_t ps = {};
|
mbstate_t ps = {};
|
||||||
size_t wchars = mbsnrtowcs(NULL, &src, count, 0, &ps);
|
size_t wchars = mbsnrtowcs(NULL, &src, count, 0, &ps);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue