commit 7303f0c7b494c1a75758f6d353aed77894aa63d1
parent eb3cc3a32d5f129a9ef89177b0af181645956c3a
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 5 May 2021 10:36:18 +0200
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.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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