mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-16 01:43:21 +00:00
Fix list pagination functions
1. Set receivers for list.NextPage and list.PrevPage to pointers
This commit is contained in:
+2
-2
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user