diff --git a/dmenu.c b/dmenu.c index 72c1c97..e1767c7 100644 --- a/dmenu.c +++ b/dmenu.c @@ -337,8 +337,9 @@ keypress(XKeyEvent *ev) { sel = matchend; break; case XK_Escape: - ret = EXIT_FAILURE; - running = False; + ret = EXIT_FAILURE; + running = False; + break; case XK_Home: if(sel == matches) { cursor = 0; @@ -378,6 +379,7 @@ keypress(XKeyEvent *ev) { puts((sel && !(ev->state & ShiftMask)) ? sel->text : text); ret = EXIT_SUCCESS; running = False; + break; case XK_Right: if(text[cursor] != '\0') { cursor = nextrune(+1);