From 511a2850a1b25389e40d6ba970be7e73eedcc9bb Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 24 Nov 2021 12:29:41 +0100 Subject: [PATCH] display: with --zero, redraw the bottom row instead of wiping a message This fixes https://savannah.gnu.org/bugs/?61541. Bug existed since commit 03637030 from two weeks ago. --- src/winio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/winio.c b/src/winio.c index 9c7fa1c5..42a2f45f 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1673,8 +1673,13 @@ void blank_statusbar(void) /* Wipe the status bar clean and include this in the next screen update. */ void wipe_statusbar(void) { +#ifndef NANO_TINY + if (ISSET(ZERO)) + wredrawln(edit, editwinrows - 1, 1); + if (ISSET(ZERO) || ISSET(MINIBAR) || LINES == 1) return; +#endif blank_row(bottomwin, 0); wnoutrefresh(bottomwin);