nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit b368faf11c8889c7d4875bd1e4caa980340b0428
parent 7303f0c7b494c1a75758f6d353aed77894aa63d1
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Wed,  5 May 2021 10:41:04 +0200

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.

Diffstat:
Msrc/search.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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",