nano

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

commit 6d828cf47019bf12cc67ec77eee5b329a3840ac4
parent 511a2850a1b25389e40d6ba970be7e73eedcc9bb
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed, 24 Nov 2021 15:53:41 +0100

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.

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

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