From 6d828cf47019bf12cc67ec77eee5b329a3840ac4 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 24 Nov 2021 15:53:41 +0100 Subject: [PATCH] display: move some code for overwriting verbatim feedback with --zero This code was meant to do just that. So, put it where it's needed. This fixes https://savannah.gnu.org/bugs/?61547. Bug existed since commit 511a2850 from earlier today. --- src/winio.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/winio.c b/src/winio.c index 42a2f45f..ccfa17a2 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1492,6 +1492,9 @@ char *get_verbatim_kbinput(WINDOW *win, size_t *count) /* Turn bracketed-paste mode back on. */ printf("\x1B[?2004h"); fflush(stdout); + + if (ISSET(ZERO) && currmenu == MMAIN) + wredrawln(edit, editwinrows - 1, 1); #endif /* Turn flow control characters back on if necessary and turn the @@ -1673,13 +1676,8 @@ 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);