For now, keep selection within current page

This commit is contained in:
Christian Rocha 2020-05-14 20:57:24 -04:00 committed by Christian Muehlhaeuser
commit f3a91f0a40

View file

@ -120,7 +120,7 @@ func stashUpdate(msg boba.Msg, m stashModel) (stashModel, boba.Cmd) {
case "j":
fallthrough
case "down":
m.index = min(m.paginator.PerPage-1, m.index+1)
m.index = min(m.paginator.ItemsOnPage(len(m.documents))-1, m.index+1)
return m, nil
case "enter":