From 1551c1c77163bf8d78070568e25875bead02faac Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Mon, 10 Aug 2020 11:48:31 +0200 Subject: [PATCH] verbatim: do not report "Invalid code" when a Unicode character is typed This fixes https://savannah.gnu.org/bugs/?58928. Bug existed since version 5.0, commit 5899181a. --- src/winio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winio.c b/src/winio.c index f2e3fa98..f7d3aaae 100644 --- a/src/winio.c +++ b/src/winio.c @@ -1465,7 +1465,7 @@ char *get_verbatim_kbinput(WINDOW *win, size_t *count) beep(); } else if (*input >= 0x80 && *count == 1) { put_back(*input); - *count = 0; + *count = 999; } }