commit c8c7986f655811f5a8e492cd718bf5fba8b4e5f4
parent f437117bf2ac08e5378fbabc6722c6e94188bfd9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 30 Dec 2020 16:14:38 +0100
minibar: allow the number-of-lines to overrule also the state flags
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -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);
}