From 3f244b1d52d5409776467704ca95d561cdab78e9 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Thu, 19 Jun 2008 09:18:17 +0100 Subject: minor fix --- dmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dmenu.c') 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; -- cgit v1.2.3-13-gbd6f