Browse Source

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)
あなたは家のように感じる
master
Ivan Tham 4 years ago
committed by Hiltjo Posthuma
parent
commit
895e5b50a8
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      x.c

+ 1
- 1
x.c View File

@ -1743,7 +1743,7 @@ kpress(XEvent *ev)
{ {
XKeyEvent *e = &ev->xkey; XKeyEvent *e = &ev->xkey;
KeySym ksym; KeySym ksym;
char buf[32], *customkey;
char buf[64], *customkey;
int len; int len;
Rune c; Rune c;
Status status; Status status;


Loading…
Cancel
Save