filemanagershortcuts: fix adding the first shortcut (#9107)

Closes #9105.
reviewable/pr9118/r1
hius07 2 years ago committed by GitHub
parent 118e063ae2
commit f2c3fd54a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,7 +51,7 @@ function FileManagerShortcuts:updateItemTable(select_callback)
-- try to stay on current page
local select_number
if self.fm_bookmark.page and self.fm_bookmark.perpage then
if self.fm_bookmark.page and self.fm_bookmark.perpage and self.fm_bookmark.page > 0 then
select_number = (self.fm_bookmark.page - 1) * self.fm_bookmark.perpage + 1
end

Loading…
Cancel
Save