diff options
author | Connor Lane Smith <cls@lubutu.com> | 2011-10-13 20:43:59 +0100 |
---|---|---|
committer | Connor Lane Smith <cls@lubutu.com> | 2011-10-13 20:43:59 +0100 |
commit | 1cf386446458d9b12f6bdca9e34a340c10f79c26 (patch) | |
tree | dca765b09de9edaa18a4b86b1c09d89c22b3d26c | |
parent | 8e302717cb2d03c79c2f372f5e0489ea54dbb440 (diff) |
limit lines to input
-rw-r--r-- | dmenu.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -454,6 +454,7 @@ readstdin(void) { | |||
454 | if(items) | 454 | if(items) |
455 | items[i].text = NULL; | 455 | items[i].text = NULL; |
456 | inputw = maxstr ? textw(dc, maxstr) : 0; | 456 | inputw = maxstr ? textw(dc, maxstr) : 0; |
457 | lines = MIN(lines, i); | ||
457 | } | 458 | } |
458 | 459 | ||
459 | void | 460 | void |