From fa5d8d7a007aa0030a4b2bfb122dabab3e69ad4b Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 19 May 2019 18:21:02 -0400 Subject: Advance cursor after :delete and :move So that you can repeat the action on the next message if appropriate --- commands/account/delete-message.go | 1 + commands/account/move.go | 1 + 2 files changed, 2 insertions(+) (limited to 'commands/account') diff --git a/commands/account/delete-message.go b/commands/account/delete-message.go index 2ad470b7..d6b669ea 100644 --- a/commands/account/delete-message.go +++ b/commands/account/delete-message.go @@ -24,6 +24,7 @@ func DeleteMessage(aerc *widgets.Aerc, args []string) error { } store := acct.Messages().Store() msg := acct.Messages().Selected() + acct.Messages().Next() store.Delete([]uint32{msg.Uid}, func(msg types.WorkerMessage) { switch msg := msg.(type) { case *types.Done: diff --git a/commands/account/move.go b/commands/account/move.go index d4978ac0..d58a2794 100644 --- a/commands/account/move.go +++ b/commands/account/move.go @@ -25,6 +25,7 @@ func Move(aerc *widgets.Aerc, args []string) error { } msg := acct.Messages().Selected() store := acct.Messages().Store() + acct.Messages().Next() store.Move([]uint32{msg.Uid}, args[1], func(msg types.WorkerMessage) { switch msg := msg.(type) { case *types.Done: -- cgit