]> git.armaanb.net Git - st.git/commitdiff
Increase XmbLookupString buffer
authorIvan Tham <pickfire@riseup.net>
Sat, 18 Jan 2020 07:52:25 +0000 (15:52 +0800)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 18 Jan 2020 13:21:50 +0000 (14:21 +0100)
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)
あなたは家のように感じる

x.c

diff --git a/x.c b/x.c
index bc3ad5a4667fa870bc4ea6485e6fdf9b032bbcaa..e000894b33a885395f103a06e6c0fba023768cc1 100644 (file)
--- a/x.c
+++ b/x.c
@@ -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;