fzy

terminal fuzzy finder picker

git clone https://9o.is/git/fzy.git

commit 7e06b50cf9058b670a180c62b76b6d9494491ed5
parent 08ad607d492e482763c53b93f1abb6484547b9ac
Author: John Hawthorn <john@hawthorn.email>
Date:   Sat, 15 Sep 2018 14:20:29 -0700

Redraw on signals

Diffstat:
Msrc/tty_interface.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/tty_interface.c b/src/tty_interface.c @@ -366,6 +366,11 @@ int tty_interface_run(tty_interface_t *state) { for (;;) { do { + while(!tty_input_ready(state->tty, -1, 1)) { + /* We received a signal (probably WINCH) */ + draw(state); + } + char s[2] = {tty_getchar(state->tty), '\0'}; handle_input(state, s, 0);