From ed4b6486a13e8a86eb400caf71abfdb7fbe41553 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 18 Aug 2019 12:45:14 +0200 Subject: [PATCH] search: don't wipe the status bar at startup when there was an error --- src/nano.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nano.c b/src/nano.c index 5bb43c8a..32b240bf 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2631,7 +2631,7 @@ int main(int argc, char **argv) if (!findnextstr(searchstring, FALSE, JUSTFIND, NULL, TRUE, openfile->filetop, 0)) not_found_msg(searchstring); - else + else if (lastmessage == HUSH) wipe_statusbar(); if (ISSET(USE_REGEXP)) tidy_up_after_search();