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