startup: suppress "Search Wrapped" when using +? to search from EOF

When using +/ or +?, any minor feedback should be cleared,
to not distract from the highligted search result.

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

Bug existed since version 5.5, commit b86f7868,
since the manner of grading status-bar messages changed.
master
Benno Schulenberg 2021-05-25 14:37:31 +02:00
parent 405c2162b5
commit f857959b8e
2 changed files with 2 additions and 1 deletions

View File

@ -2433,7 +2433,7 @@ int main(int argc, char **argv)
if (!findnextstr(searchstring, FALSE, JUSTFIND, NULL,
ISSET(BACKWARDS_SEARCH), openfile->filetop, 0))
not_found_msg(searchstring);
else if (lastmessage == HUSH)
else if (lastmessage <= REMARK)
wipe_statusbar();
openfile->placewewant = xplustabs();
if (ISSET(USE_REGEXP))

View File

@ -1670,6 +1670,7 @@ void wipe_statusbar(void)
{
blank_row(bottomwin, 0);
wnoutrefresh(bottomwin);
lastmessage = VACUUM;
}
/* Blank out the two help lines (when they are present). */