[hackers] [dmenu] limit lines to input || Connor Lane Smith
changeset: 444:2f548e0f8965
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Thu Oct 13 20:43:59 2011 +0100
files: dmenu.c
description:
limit lines to input
diff -r d5a36222a3b5 -r 2f548e0f8965 dmenu.c
--- a/dmenu.c Tue Oct 04 21:39:56 2011 +0100
+++ b/dmenu.c Thu Oct 13 20:43:59 2011 +0100
_AT_@ -454,6 +454,7 @@
if(items)
items[i].text = NULL;
inputw = maxstr ? textw(dc, maxstr) : 0;
+ lines = MIN(lines, i);
}
void
Received on Thu Oct 13 2011 - 21:44:20 CEST
This archive was generated by hypermail 2.3.0
: Thu Oct 13 2011 - 21:48:07 CEST