minor fix
This commit is contained in:
parent
a6945d5094
commit
3f244b1d52
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
# dmenu version
|
# dmenu version
|
||||||
VERSION = 3.7
|
VERSION = 3.8
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
|
|
4
dmenu.c
4
dmenu.c
|
@ -477,11 +477,11 @@ kpress(XKeyEvent * e) {
|
||||||
calcoffsets();
|
calcoffsets();
|
||||||
break;
|
break;
|
||||||
case XK_Return:
|
case XK_Return:
|
||||||
if((e->state & ShiftMask) && text)
|
if((e->state & ShiftMask) && *text)
|
||||||
fprintf(stdout, "%s", text);
|
fprintf(stdout, "%s", text);
|
||||||
else if(sel)
|
else if(sel)
|
||||||
fprintf(stdout, "%s", sel->text);
|
fprintf(stdout, "%s", sel->text);
|
||||||
else if(text)
|
else if(*text)
|
||||||
fprintf(stdout, "%s", text);
|
fprintf(stdout, "%s", text);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
running = False;
|
running = False;
|
||||||
|
|
Loading…
Reference in a new issue