From 7303f0c7b494c1a75758f6d353aed77894aa63d1 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 5 May 2021 10:36:18 +0200 Subject: [PATCH] search: show "This is the only occurrence" also on a one-row terminal That is: call edit_refresh() right away, to prevent the edit_refresh() in the main loop from overwriting the status-bar message. This fixes https://savannah.gnu.org/bugs/?60518. Bug existed since version 5.6, commit 76742cc1. --- src/search.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index 2a5e11c5..cec46f3e 100644 --- a/src/search.c +++ b/src/search.c @@ -329,7 +329,7 @@ int findnextstr(const char *needle, bool whole_word_only, int modus, light_to_col = wideness(line->data, found_x + found_len); if (!ISSET(SHOW_CURSOR)) hide_cursor = TRUE; - refresh_needed = TRUE; + edit_refresh(); } #endif