From 3eda0135bcc7945bf01bb00548d7c09ddf8e8d88 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 22 Nov 2021 16:34:11 +0100 Subject: [PATCH] tweaks: replace two direct refreshes with two scheduled ones These direct calls were installed last year in commits 7303f0c7 and b368faf1, but were made redundant by commit b741b1c9 one week later. --- src/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/search.c b/src/search.c index 04069db8..053d7366 100644 --- a/src/search.c +++ b/src/search.c @@ -327,7 +327,7 @@ int findnextstr(const char *needle, bool whole_word_only, int modus, spotlighted = TRUE; light_from_col = xplustabs(); light_to_col = wideness(line->data, found_x + found_len); - edit_refresh(); + refresh_needed = TRUE; } #endif @@ -722,7 +722,7 @@ void ask_for_and_do_replacements(void) openfile->current = beginline; openfile->current_x = begin_x; - edit_refresh(); + refresh_needed = TRUE; if (numreplaced >= 0) statusline(REMARK, P_("Replaced %zd occurrence",