Browse code

Merge pull request #69 from neuschaefer/score

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

John Hawthorn authored on 11/02/2018 21:27:42 • GitHub committed on 11/02/2018 21:27:42
Showing 1 changed files

... ...
@@ -36,7 +36,7 @@ static void draw_match(tty_interface_t *state, const char *choice, int selected)
36 36
 
37 37
 	size_t maxwidth = tty_getwidth(tty);
38 38
 
39
-	if (options->show_scores) {
39
+	if (options->show_scores && maxwidth >= 9) {
40 40
 		if (score == SCORE_MIN) {
41 41
 			tty_printf(tty, "(     ) ");
42 42
 		} else {