From 5f87ed5644f07fa9e1b3943d3e4cc33aac486088 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 11 May 2021 15:52:55 +0200 Subject: [PATCH] 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. --- src/text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index 73fbffc5..a9779c08 100644 --- a/src/text.c +++ b/src/text.c @@ -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"));