fzy

terminal fuzzy finder picker

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

commit 6161d738522669d77d3e1b33c287cede742144c7
parent c36ad890e026eaf4c972e6ab20835726905afe54
Author: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Date:   Wed, 24 Jan 2018 14:44:09 +0100

tty_interface: Don't show score if it doesn't fit

Diffstat:
Msrc/tty_interface.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tty_interface.c b/src/tty_interface.c @@ -36,7 +36,7 @@ static void draw_match(tty_interface_t *state, const char *choice, int selected) size_t maxwidth = tty_getwidth(tty); - if (options->show_scores) { + if (options->show_scores && maxwidth >= 9) { if (score == SCORE_MIN) { tty_printf(tty, "( ) "); } else {