diff options
-rw-r--r-- | dmenu.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -415,8 +415,9 @@ keypress(XKeyEvent *ev) | |||
415 | switch(ksym) { | 415 | switch(ksym) { |
416 | default: | 416 | default: |
417 | insert: | 417 | insert: |
418 | if (!iscntrl(*buf)) | 418 | if (iscntrl((unsigned char)*buf)) |
419 | insert(buf, len); | 419 | return; |
420 | insert(buf, len); | ||
420 | break; | 421 | break; |
421 | case XK_Delete: | 422 | case XK_Delete: |
422 | case XK_KP_Delete: | 423 | case XK_KP_Delete: |