diff --git a/README.md b/README.md index 0af2b07..e328022 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this dmenu 5.2 (1d2b462, -2022-10-04) project has a different take on patching. It uses preprocessor directives to decide +Similar to [dwm-flexipatch](https://github.com/bakkeby/dwm-flexipatch) this dmenu 5.2 (e42c036, +2022-10-26) project has a different take on patching. It uses preprocessor directives to decide whether or not to include a patch during build time. Essentially this means that this build, for better or worse, contains both the patched _and_ the original code. The aim being that you can select which patches to include and the build will contain that code and nothing more. diff --git a/dmenu.c b/dmenu.c index f6d75f0..d7aa2df 100644 --- a/dmenu.c +++ b/dmenu.c @@ -941,12 +941,12 @@ movewordedge(int dir) static void keypress(XKeyEvent *ev) { - char buf[32]; + char buf[64]; int len; #if PREFIXCOMPLETION_PATCH struct item * item; #endif // PREFIXCOMPLETION_PATCH - KeySym ksym; + KeySym ksym = NoSymbol; Status status; #if GRID_PATCH && GRIDNAV_PATCH int i; @@ -958,10 +958,10 @@ keypress(XKeyEvent *ev) switch (status) { default: /* XLookupNone, XBufferOverflow */ return; - case XLookupChars: + case XLookupChars: /* composed string from input method */ goto insert; case XLookupKeySym: - case XLookupBoth: + case XLookupBoth: /* a KeySym and a string are returned: use keysym */ break; }