fzy
terminal fuzzy finder picker
git clone https://9o.is/git/fzy.git
commit 75754d5b1494a4d50a06a52f60b8683e83229029 parent c36ad890e026eaf4c972e6ab20835726905afe54 Author: John Hawthorn <john.hawthorn@gmail.com> Date: Sun, 11 Feb 2018 13:27:42 -0800 Merge pull request #69 from neuschaefer/score tty_interface: Don't show score if it doesn't fit Diffstat:
| M | src/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 {