From b368faf11c8889c7d4875bd1e4caa980340b0428 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 5 May 2021 10:41:04 +0200 Subject: [PATCH] replacing: report the number of replacements 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/?60516. Bug existed since version 2.7.2, commit f920e0d3. --- src/search.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/search.c b/src/search.c index cec46f3e..60017c59 100644 --- a/src/search.c +++ b/src/search.c @@ -729,7 +729,8 @@ void ask_for_and_do_replacements(void) openfile->firstcolumn = was_firstcolumn; openfile->current = beginline; openfile->current_x = begin_x; - refresh_needed = TRUE; + + edit_refresh(); if (numreplaced >= 0) statusline(REMARK, P_("Replaced %zd occurrence",