From: Connor Lane Smith Date: Sat, 11 Sep 2010 18:48:10 +0000 (+0100) Subject: simplification X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=f0818217b3d2d0e527f11a5708badf6ddc72e99d;p=dmenu.git simplification --- diff --git a/dmenu.c b/dmenu.c index 908f548..0d01cbc 100644 --- a/dmenu.c +++ b/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: