From be61aad935c51c66c20323d83d2a258fba0365a5 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 24 Nov 2021 11:48:40 +0100 Subject: [PATCH] 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. --- src/winio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/winio.c b/src/winio.c index f6eea101..9c7fa1c5 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1673,6 +1673,9 @@ void blank_statusbar(void) /* Wipe the status bar clean and include this in the next screen update. */ void wipe_statusbar(void) { + if (ISSET(ZERO) || ISSET(MINIBAR) || LINES == 1) + return; + blank_row(bottomwin, 0); wnoutrefresh(bottomwin); lastmessage = VACUUM;