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.
master
Benno Schulenberg 2020-09-25 19:45:15 +02:00
parent 4a403ae00f
commit dac58bb651
1 changed files with 5 additions and 1 deletions

View File

@ -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();