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.
master
Benno Schulenberg 2021-05-05 10:41:04 +02:00
parent 7303f0c7b4
commit b368faf11c
1 changed files with 2 additions and 1 deletions

View File

@ -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",