From 048db82041a9866e52306ea88169b8e5352ef386 Mon Sep 17 00:00:00 2001 From: nicm Date: Fri, 4 Oct 2024 14:55:17 +0000 Subject: [PATCH] Do not translate BSpace as Unicode, GitHub issue 4156. --- tty-keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tty-keys.c b/tty-keys.c index 76e26a8b..5416c78b 100644 --- a/tty-keys.c +++ b/tty-keys.c @@ -983,7 +983,7 @@ tty_keys_extended_key(struct tty *tty, const char *buf, size_t len, nkey = number; /* Convert UTF-32 codepoint into internal representation. */ - if (nkey & ~0x7f) { + if (nkey != KEYC_BSPACE && nkey & ~0x7f) { if (utf8_fromwc(nkey, &ud) == UTF8_DONE && utf8_from_data(&ud, &uc) == UTF8_DONE) nkey = uc;