minibar: allow the number-of-lines to overrule also the state flags
parent
f437117bf2
commit
c8c7986f65
|
@ -2113,7 +2113,7 @@ void minibar(void)
|
||||||
number_of_lines = nmalloc(44);
|
number_of_lines = nmalloc(44);
|
||||||
sprintf(number_of_lines, P_(" (%zu line)", " (%zu lines)", count), count);
|
sprintf(number_of_lines, P_(" (%zu line)", " (%zu lines)", count), count);
|
||||||
tallywidth = breadth(number_of_lines);
|
tallywidth = breadth(number_of_lines);
|
||||||
if (namewidth + tallywidth + 18 < COLS)
|
if (namewidth + tallywidth + 11 < COLS)
|
||||||
waddstr(bottomwin, number_of_lines);
|
waddstr(bottomwin, number_of_lines);
|
||||||
else
|
else
|
||||||
tallywidth = 0;
|
tallywidth = 0;
|
||||||
|
@ -2150,7 +2150,7 @@ void minibar(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display the state of three flags, and the state of macro and mark. */
|
/* 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);
|
wmove(bottomwin, 0, COLS - 13);
|
||||||
show_states_at(bottomwin);
|
show_states_at(bottomwin);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue