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.
This commit is contained in:
Benno Schulenberg 2021-05-11 15:52:55 +02:00
parent 8d974cd292
commit 5f87ed5644

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"));