From 9746f4858c6b21673a85a19df3ff8b8e076c36d5 Mon Sep 17 00:00:00 2001 From: Kevin Kuehler Date: Mon, 10 Jun 2019 22:05:57 -0700 Subject: commands/msgview: Add next/prev commands Signed-off-by: Kevin Kuehler --- commands/account/next.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'commands/account') diff --git a/commands/account/next.go b/commands/account/next.go index 7e8541f..88c4fd4 100644 --- a/commands/account/next.go +++ b/commands/account/next.go @@ -48,9 +48,11 @@ func NextPrevMessage(aerc *widgets.Aerc, args []string) error { } for ; n > 0; n-- { if args[0] == "prev-message" || args[0] == "prev" { - acct.Messages().Prev() + acct.Store().Prev() + acct.Messages().Scroll() } else { - acct.Messages().Next() + acct.Store().Next() + acct.Messages().Scroll() } } return nil -- cgit v1.2.3