fzy

terminal fuzzy finder picker

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

commit ce0ae4fd4236217a3c96352bc1a69fea9188397e
parent 58d9ff0dc00110f0b62b768dd4d3e7e927a0ce2f
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Sat, 16 Aug 2014 20:34:16 -0700

tty_flush

Diffstat:
Mfzy.c | 2+-
Mtty.c | 4++++
Mtty.h | 1+
3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/fzy.c b/fzy.c @@ -139,7 +139,7 @@ void draw(tty_t *tty){ } tty_moveup(tty, line + 1); tty_setcol(tty, strlen(prompt) + strlen(search) + 1); - fflush(tty->fout); + tty_flush(tty); } void emit(tty_t *tty){ diff --git a/tty.c b/tty.c @@ -78,3 +78,7 @@ void tty_printf(tty_t *tty, const char *fmt, ...){ va_end(args); } +void tty_flush(tty_t *tty){ + fflush(tty->fout); +} + diff --git a/tty.h b/tty.h @@ -38,5 +38,6 @@ void tty_moveup(tty_t *tty, int i); void tty_setcol(tty_t *tty, int col); void tty_printf(tty_t *tty, const char *fmt, ...); +void tty_flush(tty_t *tty); #endif