tty_interface: Don't show score if it doesn't fit
| ... | ... |
@@ -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 {
|