diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-01-24 14:44:09 +0100 |
---|---|---|
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2018-01-24 14:44:09 +0100 |
commit | d8417379b53694d0e47a150f675a3173fc028b55 (patch) | |
tree | f7a31c0caa23ee8e688964259ad943f0fbf39e0c | |
parent | 919bae54f53817043f1285034257e05f4a3e2b74 (diff) |
tty_interface: Don't show score if it doesn't fit
-rw-r--r-- | src/tty_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tty_interface.c b/src/tty_interface.c index da9c5f1..6e09852 100644 --- 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 { |