X-Git-Url: https://git.xinqibao.xyz/dmenu.git/blobdiff_plain/8e302717cb2d03c79c2f372f5e0489ea54dbb440..4126b1e32379ee206c5c9bda2bf3699f171c9899:/dmenu.c?ds=sidebyside 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