From 6389f8dbca36ddc1ca4028fdb404d63eb404357f Mon Sep 17 00:00:00 2001 From: rodri Date: Sun, 1 Oct 2023 12:19:54 +0000 Subject: get the condition right. --- menulist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'menulist.c') diff --git a/menulist.c b/menulist.c index 90eaa31..ea7e4b8 100644 --- a/menulist.c +++ b/menulist.c @@ -74,7 +74,7 @@ menulist_update(Menulist *ml, Mousectl *mc, Channel *drawchan) if(ml->nentries < 1) return -1; - r = ml->nentries < Maxvisitems? ml->r: Rpt(ml->sr.min, ml->r.max); + r = ml->nentries > Maxvisitems? Rpt(ml->sr.min, ml->r.max): ml->r; selected = -1; if(ptinrect(mc->xy, r)){ -- cgit v1.2.3