From 1cf386446458d9b12f6bdca9e34a340c10f79c26 Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Thu, 13 Oct 2011 20:43:59 +0100 Subject: limit lines to input --- dmenu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dmenu.c b/dmenu.c index 5d11932..f105b56 100644 --- a/dmenu.c +++ b/dmenu.c @@ -454,6 +454,7 @@ readstdin(void) { if(items) items[i].text = NULL; inputw = maxstr ? textw(dc, maxstr) : 0; + lines = MIN(lines, i); } void -- cgit v1.2.3