aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--menulist.c2
1 files changed, 1 insertions, 1 deletions
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)){