Fixed pager limit calculation

This commit is contained in:
Yessiest 2022-04-16 01:36:24 +04:00
parent b80ec3fdb4
commit dcfcc459a1
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ return function(widget,list,max_elements)
end end
end end
function new_pager:next() function new_pager:next()
if #list >= self.index*self.max then if #list >= (self.index+1)*self.max then
self.index = self.index + 1 self.index = self.index + 1
new_pager:update() new_pager:update()
end end