statusbar: ensure that "No further matches" does not get overwritten

Redraw the content of the edit window (for the undone final completion)
before pushing out the "No further matches" message, so that the latter
will not get overwritten by the buffer content -- in case the terminal
has just one row.

This fixes https://savannah.gnu.org/bugs/?60581.

Bug existed since commit 2cf28f9d from yesterday.
master
Benno Schulenberg 2021-05-11 15:52:55 +02:00
parent 8d974cd292
commit 5f87ed5644
1 changed files with 1 additions and 1 deletions

View File

@ -3161,8 +3161,8 @@ void complete_a_word(void)
/* The search has reached the end of the file. */
if (list_of_completions != NULL) {
edit_refresh();
statusline(AHEM, _("No further matches"));
refresh_needed = TRUE;
} else
/* TRANSLATORS: Shown when there are zero possible completions. */
statusline(AHEM, _("No matches"));