commit accb645d3f5d3929e5a69cf1b7015724cadfbbdd
parent 620496f5cdcf5818e43ab84781fc7414a14ebe49
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 14 Sep 2020 11:15:00 +0200
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.
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/browser.c b/src/browser.c
@@ -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.