diff options
author | Ivan Tham <pickfire@riseup.net> | 2020-01-18 15:52:25 +0800 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-01-18 14:21:50 +0100 |
commit | 895e5b50a8cc835c19a45e1e328eb4dc78f5fd0c (patch) | |
tree | a3b62796bd265d1dab5eda6a8389cd08bf6f74be | |
parent | 384830110bddcebed00b6530a5336f07ad7c405f (diff) | |
download | st-895e5b50a8cc835c19a45e1e328eb4dc78f5fd0c.tar.gz |
Increase XmbLookupString buffer
Current buffer is too short to input medium to long sentences from IME.
Input with longer text will show the wrong input, taking 64 instead of
32 bytes should be enough for most of the cases. Broken cases before,
Chinese (taken from song 也可以)
可不可以轻轻的松开自己
Japanese (taken from bootleggers rom quote)
あなたは家のように感じる
-rw-r--r-- | x.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1743,7 +1743,7 @@ kpress(XEvent *ev) { XKeyEvent *e = &ev->xkey; KeySym ksym; - char buf[32], *customkey; + char buf[64], *customkey; int len; Rune c; Status status; |