nano

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

commit dac58bb651c788b0fe40255baede2d06ba62518a
parent 4a403ae00f2c84090b07b11b5df363efecf4aa45
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 25 Sep 2020 19:45:15 +0200

display: do not wipe the status bar when the terminal has just one row

If there is just one row, the edit window would be wiped too.

This fixes https://savannah.gnu.org/bugs/?59180.

Bug existed in this form since version 4.4, commit f7d5a82a.

Diffstat:
Msrc/search.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/search.c b/src/search.c @@ -328,6 +328,9 @@ int findnextstr(const char *needle, bool whole_word_only, int modus, lastmessage = VACUUM; } + if (LINES == 1) + refresh_needed = TRUE; + return 1; } @@ -366,7 +369,8 @@ void do_research(void) /* Use the search-menu key bindings, to allow cancelling. */ currmenu = MWHEREIS; - wipe_statusbar(); + if (LINES > 1) + wipe_statusbar(); go_looking();