diff options
Diffstat (limited to 'x11-misc/dmenu/files/dmenu-3.7.patch')
-rw-r--r-- | x11-misc/dmenu/files/dmenu-3.7.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/x11-misc/dmenu/files/dmenu-3.7.patch b/x11-misc/dmenu/files/dmenu-3.7.patch new file mode 100644 index 000000000000..44bb70154846 --- /dev/null +++ b/x11-misc/dmenu/files/dmenu-3.7.patch @@ -0,0 +1,17 @@ +diff -ru dmenu-3.7~/dmenu.c dmenu-3.7/dmenu.c +--- dmenu-3.7~/dmenu.c 2008-07-20 16:26:14.000000000 +0200 ++++ dmenu-3.7/dmenu.c 2008-07-20 16:27:01.000000000 +0200 +@@ -477,11 +477,11 @@ + 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; |