aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJelle Besseling <jelle@pingiun.com>2019-08-04 16:05:06 +0200
committerDrew DeVault <sir@cmpwn.com>2019-08-07 15:02:11 +0900
commit3650b72ca64b9fb6a7e7b058ad6ef67894c2866d (patch)
tree1833f2166b90bf1ef88f1b7415cdd889b7c2bca4 /lib
parent1f6c108c0412a03bfadd01ac81607e76ecbcd2d7 (diff)
Implement next-folder using NextPrev with amount
This fixes ~sircmpwn/aerc2#182 https://todo.sr.ht/~sircmpwn/aerc2/182
Diffstat (limited to 'lib')
-rw-r--r--lib/msgstore.go6
1 files changed, 3 insertions, 3 deletions
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)) {