[wiki] [sites] Add dmenu patch for hiding the single empty menu item on passing the single newline || Danil Semelenov

From: <git_AT_suckless.org>
Date: Fri, 18 Sep 2015 22:55:19 +0200

commit e9c21ad462d5f65178c56dad1caeda5b554baa2b
Author: Danil Semelenov <mail_AT_danil.mobi>
Date: Fri Sep 18 23:55:11 2015 +0300

    Add dmenu patch for hiding the single empty menu item on passing the single newline

diff --git a/tools.suckless.org/dmenu/patches/dmenu-4.5-hide-single-newline.diff b/tools.suckless.org/dmenu/patches/dmenu-4.5-hide-single-newline.diff
new file mode 100644
index 0000000..e377a7c
--- /dev/null
+++ b/tools.suckless.org/dmenu/patches/dmenu-4.5-hide-single-newline.diff
_AT_@ -0,0 +1,12 @@
+diff --git a/dmenu.c b/dmenu.c
+index 4ea95f8..4b76da5 100644
+--- a/dmenu.c
++++ b/dmenu.c
+_AT_@ -482,6 +482,7 @@ readstdin(void) {
+ }
+ if(items)
+ items[i].text = NULL;
++ if (i == 1 && items[0].text[0] == '
Received on Fri Sep 18 2015 - 22:55:19 CEST

This archive was generated by hypermail 2.3.0 : Fri Sep 18 2015 - 23:00:13 CEST