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)
415 switch(ksym) { 415 switch(ksym) {
416 default: 416 default:
417insert: 417insert:
418 if (iscntrl((unsigned char)*buf)) 418 if (!iscntrl(*buf))
419 return; 419 insert(buf, len);
420 insert(buf, len);
421 break; 420 break;
422 case XK_Delete: 421 case XK_Delete:
423 case XK_KP_Delete: 422 case XK_KP_Delete: