From 17f531890a1ebe85ed1ffbf1c97ebaf5ce8b3fd7 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 27 Sep 2020 11:23:23 +0200 Subject: [PATCH] display: skip a special-case refresh when a message was written This fixes https://savannah.gnu.org/bugs/?59188. Bug existed since the previous commit, dac58bb6. --- src/search.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/search.c b/src/search.c index 46c78070..e75fa0b6 100644 --- a/src/search.c +++ b/src/search.c @@ -328,9 +328,6 @@ int findnextstr(const char *needle, bool whole_word_only, int modus, lastmessage = VACUUM; } - if (LINES == 1) - refresh_needed = TRUE; - return 1; } @@ -425,6 +422,8 @@ void go_looking(void) if (didfind == 1 && openfile->current == was_current && openfile->current_x == was_current_x) statusbar(_("This is the only occurrence")); + else if (didfind == 1 && LINES == 1) + refresh_needed = TRUE; else if (didfind == 0) not_found_msg(last_search);