diff options
author | John Hawthorn <john.hawthorn@gmail.com> | 2018-02-11 13:27:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-11 13:27:42 -0800 |
commit | 41d932531f9ef9b3798f6a3113c314cee51cdd1f (patch) | |
tree | f7a31c0caa23ee8e688964259ad943f0fbf39e0c | |
parent | 919bae54f53817043f1285034257e05f4a3e2b74 (diff) | |
parent | d8417379b53694d0e47a150f675a3173fc028b55 (diff) |
Merge pull request #69 from neuschaefer/score
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 { |