nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit be61aad935c51c66c20323d83d2a258fba0365a5
parent c06f7d43e9aca9fe54da1b6534a53bd93251c8cd
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 24 Nov 2021 11:48:40 +0100

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.

Diffstat:
Msrc/winio.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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;