From f6d4b8e0b0c5cae053f7d76a50420180b652e7d6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 20 Jan 2021 18:30:22 +0530 Subject: [PATCH] typo --- kitty/key_encoding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/key_encoding.c b/kitty/key_encoding.c index 83334f7e6..56c113632 100644 --- a/kitty/key_encoding.c +++ b/kitty/key_encoding.c @@ -349,7 +349,7 @@ encode_key(const KeyEvent *ev, char *output) { static inline bool startswith_ascii_control_char(const char *p) { - if (!p || !*p) return false; + if (!p || !*p) return true; uint32_t codep, state = UTF8_ACCEPT; while(*p) { if (decode_utf8(&state, &codep, *p) == UTF8_ACCEPT) {