diff options
-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; |