Fix list pagination functions

1. Set receivers for list.NextPage and list.PrevPage to pointers
This commit is contained in:
neko.py
2024-02-28 11:11:06 -05:00
committed by Maas Lalani
parent 0c1d0ce056
commit 6b817f345c
+2 -2
View File
@@ -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()
}