From 3650b72ca64b9fb6a7e7b058ad6ef67894c2866d Mon Sep 17 00:00:00 2001 From: Jelle Besseling Date: Sun, 4 Aug 2019 16:05:06 +0200 Subject: Implement next-folder using NextPrev with amount This fixes ~sircmpwn/aerc2#182 https://todo.sr.ht/~sircmpwn/aerc2/182 --- lib/msgstore.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/msgstore.go') diff --git a/lib/msgstore.go b/lib/msgstore.go index b346129..1061c8e 100644 --- a/lib/msgstore.go +++ b/lib/msgstore.go @@ -337,7 +337,7 @@ func (store *MessageStore) Select(index int) { } } -func (store *MessageStore) nextPrev(delta int) { +func (store *MessageStore) NextPrev(delta int) { uids := store.Uids() if len(uids) == 0 { return @@ -361,11 +361,11 @@ func (store *MessageStore) nextPrev(delta int) { } func (store *MessageStore) Next() { - store.nextPrev(1) + store.NextPrev(1) } func (store *MessageStore) Prev() { - store.nextPrev(-1) + store.NextPrev(-1) } func (store *MessageStore) Search(c *imap.SearchCriteria, cb func([]uint32)) { -- cgit v1.2.3