summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-06-19 09:18:17 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-06-19 09:18:17 +0100
commit3f244b1d52d5409776467704ca95d561cdab78e9 (patch)
treea0d45890488c3d0c41092ad96db74cc6f34e99fc
parenta6945d509456e64ff0b011c691f9e186240685b6 (diff)
minor fix
-rw-r--r--config.mk2
-rw-r--r--dmenu.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index 557f48c..9206a44 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
# dmenu version
-VERSION = 3.7
+VERSION = 3.8
# Customize below to fit your system
diff --git a/dmenu.c b/dmenu.c
index 2afcc48..bf74edb 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -477,11 +477,11 @@ kpress(XKeyEvent * e) {
calcoffsets();
break;
case XK_Return:
- if((e->state & ShiftMask) && text)
+ if((e->state & ShiftMask) && *text)
fprintf(stdout, "%s", text);
else if(sel)
fprintf(stdout, "%s", sel->text);
- else if(text)
+ else if(*text)
fprintf(stdout, "%s", text);
fflush(stdout);
running = False;