minibar: allow the number-of-lines to overrule also the state flags

master
Benno Schulenberg 2020-12-30 16:14:38 +01:00
parent f437117bf2
commit c8c7986f65
1 changed files with 2 additions and 2 deletions

View File

@ -2113,7 +2113,7 @@ void minibar(void)
number_of_lines = nmalloc(44);
sprintf(number_of_lines, P_(" (%zu line)", " (%zu lines)", count), count);
tallywidth = breadth(number_of_lines);
if (namewidth + tallywidth + 18 < COLS)
if (namewidth + tallywidth + 11 < COLS)
waddstr(bottomwin, number_of_lines);
else
tallywidth = 0;
@ -2150,7 +2150,7 @@ void minibar(void)
}
/* Display the state of three flags, and the state of macro and mark. */
if (namewidth + 17 < COLS) {
if (namewidth + tallywidth + 18 < COLS) {
wmove(bottomwin, 0, COLS - 13);
show_states_at(bottomwin);
}