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 | |
parent | a6945d509456e64ff0b011c691f9e186240685b6 (diff) |
minor fix
-rw-r--r-- | config.mk | 2 | ||||
-rw-r--r-- | dmenu.c | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | # dmenu version | 1 | # dmenu version |
2 | VERSION = 3.7 | 2 | VERSION = 3.8 |
3 | 3 | ||
4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
5 | 5 | ||
@@ -477,11 +477,11 @@ kpress(XKeyEvent * e) { | |||
477 | calcoffsets(); | 477 | calcoffsets(); |
478 | break; | 478 | break; |
479 | case XK_Return: | 479 | case XK_Return: |
480 | if((e->state & ShiftMask) && text) | 480 | if((e->state & ShiftMask) && *text) |
481 | fprintf(stdout, "%s", text); | 481 | fprintf(stdout, "%s", text); |
482 | else if(sel) | 482 | else if(sel) |
483 | fprintf(stdout, "%s", sel->text); | 483 | fprintf(stdout, "%s", sel->text); |
484 | else if(text) | 484 | else if(*text) |
485 | fprintf(stdout, "%s", text); | 485 | fprintf(stdout, "%s", text); |
486 | fflush(stdout); | 486 | fflush(stdout); |
487 | running = False; | 487 | running = False; |