commit b0f4e796c6f5ca237367f3b565815019327ff6a6
parent 3ac9e2257681e5ce1afc03bc36ad4903d64b5872
Author: Klemens Nanni <kl3@posteo.org>
Date: Sun, 31 Jan 2016 00:34:12 +0100
[dmenu] 20160111-hide-single-newline.diff
Diffstat:
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/tools.suckless.org/dmenu/patches/dmenu-git-20160111-hide-single-newline.diff b/tools.suckless.org/dmenu/patches/dmenu-git-20160111-hide-single-newline.diff
@@ -0,0 +1,12 @@
+diff --git a/dmenu.c b/dmenu.c
+index e0c2f80..ef25442 100644
+--- a/dmenu.c
++++ b/dmenu.c
+@@ -487,6 +487,7 @@ readstdin(void)
+ }
+ if (items)
+ items[i].text = NULL;
++ if (i == 1 && items[0].text[0] == '\0') items = realloc(items, 0);
+ inputw = maxstr ? TEXTW(maxstr) : 0;
+ lines = MIN(lines, i);
+ }
diff --git a/tools.suckless.org/dmenu/patches/hide-single-newline.md b/tools.suckless.org/dmenu/patches/hide-single-newline.md
@@ -10,8 +10,10 @@ Download
--------
* [dmenu-4.5-hide-single-newline.diff](dmenu-4.5-hide-single-newline.diff) (0.1k) (18 Sep 2015)
+* [dmenu-git-20160111-hide-single-newline.diff](dmenu-git-20160111-hide-single-newline.diff)
-Author
-------
+Authors
+-------
* Danil Semelenov - `<mail at danil dot mobi>`
+* Klemens Nanni <[kl3@posteo.org](mailto:kl3@posteo.org)> (20160111 version)