projects
/
suckless
/
dmenu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6945d5
)
minor fix
author
Anselm R Garbe
<garbeam@gmail.com>
Thu, 19 Jun 2008 08:18:17 +0000
(09:18 +0100)
committer
Anselm R Garbe
<garbeam@gmail.com>
Thu, 19 Jun 2008 08:18:17 +0000
(09:18 +0100)
config.mk
patch
|
blob
|
history
dmenu.c
patch
|
blob
|
history
diff --git
a/config.mk
b/config.mk
index 557f48cc5ec76789fae0b7825973c6e90703954f..9206a44588983de1e62cce887cc3a5f49019106e 100644
(file)
--- a/
config.mk
+++ b/
config.mk
@@
-1,5
+1,5
@@
# dmenu version
-VERSION = 3.
7
+VERSION = 3.
8
# Customize below to fit your system
diff --git
a/dmenu.c
b/dmenu.c
index 2afcc4873aab202743b0694b691235d73ac72000..bf74edb133b04832aa7289c9954b691dc7969b32 100644
(file)
--- a/
dmenu.c
+++ b/
dmenu.c
@@
-477,11
+477,11
@@
kpress(XKeyEvent * e) {
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;