display: do not wipe the status bar when --zero or --minibar is active

With --zero, any message that was there will get overwitten by the
text window anyway as result of the current operation.  And with
--minibar, any message will get overwritten with the minibar.

This fixes https://savannah.gnu.org/bugs/?61539.

Bug existed since commit 03637030 from two weeks ago.
This commit is contained in:
Benno Schulenberg 2021-11-24 11:48:40 +01:00
parent c06f7d43e9
commit be61aad935

View File

@ -1673,6 +1673,9 @@ void blank_statusbar(void)
/* Wipe the status bar clean and include this in the next screen update. */ /* Wipe the status bar clean and include this in the next screen update. */
void wipe_statusbar(void) void wipe_statusbar(void)
{ {
if (ISSET(ZERO) || ISSET(MINIBAR) || LINES == 1)
return;
blank_row(bottomwin, 0); blank_row(bottomwin, 0);
wnoutrefresh(bottomwin); wnoutrefresh(bottomwin);
lastmessage = VACUUM; lastmessage = VACUUM;