summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 650fc57..e09d3b7 100644
--- a/menu.c
+++ b/menu.c
@@ -304,7 +304,7 @@ kpress(XKeyEvent * e)
}
break;
default:
- if((num == 1) && !iscntrl((int) buf[0])) {
+ if(num && !iscntrl((int) buf[0])) {
buf[num] = 0;
if(len > 0)
strncat(text, buf, sizeof(text));