diff --git a/dmenu.c b/dmenu.c index 4f485ce..0293dac 100644 --- a/dmenu.c +++ b/dmenu.c @@ -503,9 +503,8 @@ keypress(XKeyEvent *ev) switch(ksym) { default: insert: - if (iscntrl((unsigned char)*buf)) - return; - insert(buf, len); + if (!iscntrl(*buf)) + insert(buf, len); break; case XK_Delete: case XK_KP_Delete: