Skip to content

Commit

Permalink
fix(choose): Fix paging up bug
Browse files Browse the repository at this point in the history
Fixes #82
  • Loading branch information
maaslalani committed Aug 2, 2022
1 parent 378a000 commit 40db69f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion choose/choose.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
}
case "up", "k", "ctrl+p":
m.index = clamp(m.index-1, 0, len(m.items)-1)
if m.index <= start {
if m.index < start {
m.paginator.PrevPage()
}
case "right", "l", "ctrl+f":
Expand Down

0 comments on commit 40db69f

Please sign in to comment.