browser: wipe the status bar before searching again with M-W or M-Q

In this way, any message that is on the status bar after the search
will be a response to this search and not some leftover.

This fixes https://savannah.gnu.org/bugs/?59109.
master
Benno Schulenberg 2020-09-14 11:15:00 +02:00
parent 620496f5cd
commit accb645d3f
1 changed files with 3 additions and 1 deletions

View File

@ -375,8 +375,10 @@ void research_filename(bool forwards)
if (*last_search == '\0')
statusbar(_("No current search pattern"));
else
else {
wipe_statusbar();
findfile(last_search, forwards);
}
}
/* Strip one element from the end of path, and return the stripped path.