This commit is contained in:
Kovid Goyal 2021-01-20 18:30:22 +05:30
parent 5fafd70b0f
commit f6d4b8e0b0
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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) {