From dcfcc459a1335060393716fa046d9c0d66298371 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Sat, 16 Apr 2022 01:36:24 +0400 Subject: [PATCH] Fixed pager limit calculation --- widgets/pager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/pager.lua b/widgets/pager.lua index a0bcd4d..6a806a1 100644 --- a/widgets/pager.lua +++ b/widgets/pager.lua @@ -21,7 +21,7 @@ return function(widget,list,max_elements) end end function new_pager:next() - if #list >= self.index*self.max then + if #list >= (self.index+1)*self.max then self.index = self.index + 1 new_pager:update() end