fzy

terminal fuzzy finder picker

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

commit 7b5e02fe86b4f6cfe8217989c9fc09976741c5a3
parent c6783048dc7fac6dcc5b299017b35c475df311f8
Author: John Hawthorn <john.hawthorn@gmail.com>
Date:   Wed, 28 Dec 2016 01:09:01 -0800

Fix tty_interface clear for num_lines=0

Diffstat:
Msrc/tty_interface.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/tty_interface.c b/src/tty_interface.c @@ -16,7 +16,9 @@ static void clear(tty_interface_t *state) { tty_newline(tty); } tty_clearline(tty); - tty_moveup(tty, line - 1); + if (state->options->num_lines > 0) { + tty_moveup(tty, line - 1); + } tty_flush(tty); }