nano

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

commit 5f87ed5644f07fa9e1b3943d3e4cc33aac486088
parent 8d974cd2922db2222be7b3d3e6f47899b98f6ec8
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 11 May 2021 15:52:55 +0200

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.

Diffstat:
Msrc/text.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

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