aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dmenu.c b/dmenu.c
index 19f6385..085dc29 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -415,9 +415,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: