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.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user