commit 895e5b50a8cc835c19a45e1e328eb4dc78f5fd0c
Author: Ivan Tham <[email protected]>
AuthorDate: Sat Jan 18 15:52:25 2020 +0800
Commit: Hiltjo Posthuma <[email protected]>
CommitDate: Sat Jan 18 14:21:50 2020 +0100
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)
ããªãã¯å®¶ã®ããã«æãã
diff --git a/x.c b/x.c
index bc3ad5a..e000894 100644
--- 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;