aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--dmenu.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/config.mk b/config.mk
index 557f48c..9206a44 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# dmenu version 1# dmenu version
2VERSION = 3.7 2VERSION = 3.8
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
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) {
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;