From d7b2b55bf5cce237b39a83143ad49ea48a5611d2 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 10 Aug 2020 12:12:52 +0200 Subject: [PATCH] display: show the cursor position also right after the screen is resized Bug existed since commit 8e226a9f from half an hour ago. --- src/text.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/text.c b/src/text.c index a981c57f..5079371c 100644 --- a/src/text.c +++ b/src/text.c @@ -3016,17 +3016,17 @@ void do_verbatim_input(void) /* When something valid was obtained, unsuppress cursor-position display, * insert the bytes into the edit buffer, and blank the status bar. */ - if (0 < count && count < 999) { + if (count > 0) { if (ISSET(CONSTANT_SHOW)) lastmessage = VACUUM; - inject(bytes, count); + if (count < 999) + inject(bytes, count); + wipe_statusbar(); - } else if (count == 0) + } else /* TRANSLATORS: An invalid verbatim Unicode code was typed. */ statusline(ALERT, _("Invalid code")); - else - wipe_statusbar(); free(bytes); }