aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-06-19 09:18:17 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-06-19 09:18:17 +0100
commit3f244b1d52d5409776467704ca95d561cdab78e9 (patch)
treea0d45890488c3d0c41092ad96db74cc6f34e99fc
parenta6945d509456e64ff0b011c691f9e186240685b6 (diff)
minor fix
-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;