diff --git a/src/nano.c b/src/nano.c index a4a9c3d1..abc49174 100644 --- a/src/nano.c +++ b/src/nano.c @@ -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)) diff --git a/src/winio.c b/src/winio.c index 2121c19c..57e4043a 100644 --- a/src/winio.c +++ b/src/winio.c @@ -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). */