about summary refs log tree commit diff
path: root/dmenu.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2011-10-13 20:43:59 +0100
committerConnor Lane Smith <cls@lubutu.com>2011-10-13 20:43:59 +0100
commit1cf386446458d9b12f6bdca9e34a340c10f79c26 (patch)
treedca765b09de9edaa18a4b86b1c09d89c22b3d26c /dmenu.c
parentinput focus: fix for reparenting wms (diff)
downloaddmenu-1cf386446458d9b12f6bdca9e34a340c10f79c26.tar.gz
dmenu-1cf386446458d9b12f6bdca9e34a340c10f79c26.tar.bz2
dmenu-1cf386446458d9b12f6bdca9e34a340c10f79c26.zip
limit lines to input
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c1
1 files changed, 1 insertions, 0 deletions
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