blob: 44bb7015484609a312a64d101480ddbeb204d904 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff -ru dmenu-3.7~/dmenu.c dmenu-3.7/dmenu.c
--- dmenu-3.7~/dmenu.c 2008-07-20 16:26:14.000000000 +0200
+++ dmenu-3.7/dmenu.c 2008-07-20 16:27:01.000000000 +0200
@@ -477,11 +477,11 @@
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;
|