Skip to content

Commit

Permalink
Fix list pagination functions
Browse files Browse the repository at this point in the history
1. Set receivers for list.NextPage and list.PrevPage to pointers
  • Loading branch information
nekopy authored and maaslalani committed Feb 28, 2024
1 parent 0c1d0ce commit 6b817f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions list/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,12 +532,12 @@ func (m *Model) CursorDown() {
}

// PrevPage moves to the previous page, if available.
func (m Model) PrevPage() {
func (m *Model) PrevPage() {
m.Paginator.PrevPage()
}

// NextPage moves to the next page, if available.
func (m Model) NextPage() {
func (m *Model) NextPage() {
m.Paginator.NextPage()
}

Expand Down

0 comments on commit 6b817f3

Please sign in to comment.