From 6f03e49e68dfe0d9c0c7d49079c4383b26aca916 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 25 May 2020 18:57:24 +0000 Subject: Use the internal representation for UTF-8 keys instead of wchar_t and drop some code only needed for that. --- input-keys.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'input-keys.c') diff --git a/input-keys.c b/input-keys.c index 7a922ab8..d1fbbfcf 100644 --- a/input-keys.c +++ b/input-keys.c @@ -469,10 +469,9 @@ input_key(struct screen *s, struct bufferevent *bev, key_code key) return (0); } if (justkey > 0x7f && justkey < KEYC_BASE) { - if (utf8_split(justkey, &ud) != UTF8_DONE) - return (-1); if (key & KEYC_META) bufferevent_write(bev, "\033", 1); + utf8_to_data(justkey, &ud); bufferevent_write(bev, ud.data, ud.size); return (0); } -- cgit v1.2.3