From f0818217b3d2d0e527f11a5708badf6ddc72e99d Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Sat, 11 Sep 2010 19:48:10 +0100 Subject: simplification --- dmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dmenu.c') 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: -- cgit v1.2.3-13-gbd6f