diff --git a/dmenubar/dmenu.c b/dmenubar/dmenu.c index 908f548..0d01cbc 100644 --- a/dmenubar/dmenu.c +++ b/dmenubar/dmenu.c @@ -230,7 +230,7 @@ keypress(XKeyEvent *ev) { } switch(ksym) { default: - if(!iscntrl(*buf)) + if(*buf) insert(buf, strlen(buf)); break; case XK_Delete: