Compare commits

..

No commits in common. "de8132c8c2d3261f0f12d17c04b5607b401b5765" and "48dd3c0ab79de26b7d819fc10cf99ad70e4bc518" have entirely different histories.

2 changed files with 4 additions and 7 deletions

2
st.c
View File

@ -36,7 +36,7 @@
#define CAR_PER_ARG 4
#define STR_BUF_SIZ ESC_BUF_SIZ
#define STR_ARG_SIZ ESC_ARG_SIZ
#define HISTSIZE 8000
#define HISTSIZE 2000
#define RESIZEBUFFER 1000
/* macros */

9
x.c
View File

@ -2387,7 +2387,7 @@ void
kpress(XEvent *ev)
{
XKeyEvent *e = &ev->xkey;
KeySym ksym = NoSymbol;
KeySym ksym;
char buf[64], *customkey;
int len;
Rune c;
@ -2397,13 +2397,10 @@ kpress(XEvent *ev)
if (IS_SET(MODE_KBDLOCK))
return;
if (xw.ime.xic) {
if (xw.ime.xic)
len = XmbLookupString(xw.ime.xic, e, buf, sizeof buf, &ksym, &status);
if (status == XBufferOverflow)
return;
} else {
else
len = XLookupString(e, buf, sizeof buf, &ksym, NULL);
}
/* 1. shortcuts */
for (bp = shortcuts; bp < shortcuts + LEN(shortcuts); bp++) {
if (ksym == bp->keysym && match(bp->mod, e->state)) {