mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-22 16:14:17 +02:00
For now, keep selection within current page
This commit is contained in:
parent
fd62cebfd1
commit
f3a91f0a40
1 changed files with 1 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue