From 6b817f345c19c376185a94514b5fe2b9e718e970 Mon Sep 17 00:00:00 2001 From: "neko.py" Date: Wed, 17 Jan 2024 12:37:38 -0800 Subject: [PATCH] Fix list pagination functions 1. Set receivers for list.NextPage and list.PrevPage to pointers --- list/list.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/list/list.go b/list/list.go index 7b47879..af360d1 100644 --- a/list/list.go +++ b/list/list.go @@ -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() }