From d4c5b8c89987335811f273c4210673777dfb5007 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 9 Apr 2023 22:57:40 +0530 Subject: [PATCH] Keyboard input: Fix text not being reported as unicode codepoints for multi-byte characters in the kitty keyboard protocol Fixes #6167 --- docs/changelog.rst | 2 ++ kitty/key_encoding.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index b67eca621..bb3bd1ca6 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -92,6 +92,8 @@ Detailed list of changes - Linux Wayland: Fix animated images not being animated continuously (:iss:`6126`) +- Keyboard input: Fix text not being reported as unicode codepoints for multi-byte characters in the kitty keyboard protocol (:iss:`6167`) + 0.27.1 [2023-02-07] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/key_encoding.c b/kitty/key_encoding.c index 47a54f950..366b39fe6 100644 --- a/kitty/key_encoding.c +++ b/kitty/key_encoding.c @@ -88,7 +88,6 @@ serialize(const EncodingData *data, char *output, const char csi_trailer) { if (first) { P(";%u", codep); first = false; } else P(":%u", codep); } - state = UTF8_ACCEPT; p++; } }