diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-06-19 09:18:17 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-06-19 09:18:17 +0100 |
commit | 3f244b1d52d5409776467704ca95d561cdab78e9 (patch) | |
tree | a0d45890488c3d0c41092ad96db74cc6f34e99fc /dmenu.c | |
parent | Added tag 3.7 for changeset 0508a3a6ee10 (diff) | |
download | dmenu-3f244b1d52d5409776467704ca95d561cdab78e9.tar.gz dmenu-3f244b1d52d5409776467704ca95d561cdab78e9.tar.bz2 dmenu-3f244b1d52d5409776467704ca95d561cdab78e9.zip |
minor fix
Diffstat (limited to 'dmenu.c')
-rw-r--r-- | dmenu.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |