summaryrefslogtreecommitdiffstats
path: root/status.c
diff options
context:
space:
mode:
authornicm <nicm>2020-05-25 18:57:24 +0000
committernicm <nicm>2020-05-25 18:57:24 +0000
commit6f03e49e68dfe0d9c0c7d49079c4383b26aca916 (patch)
tree86a94f09a878fe2d32cd3ef29a69db242208897f /status.c
parent35779d655d7eec4b904eeb3a670bbef02aba016d (diff)
Use the internal representation for UTF-8 keys instead of wchar_t and
drop some code only needed for that.
Diffstat (limited to 'status.c')
-rw-r--r--status.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/status.c b/status.c
index 93ac70df..ad4d6cda 100644
--- a/status.c
+++ b/status.c
@@ -1275,8 +1275,7 @@ process_key:
append_key:
if (key <= 0x1f || key >= KEYC_BASE)
return (0);
- if (utf8_split(key, &tmp) != UTF8_DONE)
- return (0);
+ utf8_to_data(key, &tmp);
c->prompt_buffer = xreallocarray(c->prompt_buffer, size + 2,
sizeof *c->prompt_buffer);