summary refs log tree commit diff stats
path: root/commands/msg/delete.go
diff options
context:
space:
mode:
authorKevin Kuehler <kkuehler@brave.com>2019-06-10 22:05:55 -0700
committerDrew DeVault <sir@cmpwn.com>2019-06-11 09:34:36 -0400
commit32f970e0531a0811392d2836773870acf649cf26 (patch)
tree2e65f2a122b6235c9e858ba4af36481475292747 /commands/msg/delete.go
parentd1df7103280ef488434b103e5e9e3129c407e5b6 (diff)
downloadaerc-32f970e0531a0811392d2836773870acf649cf26.tar.gz
Move select functionality from msglist to msgstore
Remove msglist Next and Prev commands

Signed-off-by: Kevin Kuehler <kkuehler@brave.com>
Diffstat (limited to 'commands/msg/delete.go')
-rw-r--r--commands/msg/delete.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/msg/delete.go b/commands/msg/delete.go
index 082dbe3..ee3dd29 100644
--- a/commands/msg/delete.go
+++ b/commands/msg/delete.go
@@ -31,7 +31,8 @@ func DeleteMessage(aerc *widgets.Aerc, args []string) error {
 	if isMsgView {
 		aerc.RemoveTab(widget)
 	}
-	acct.Messages().Next()
+	store.Next()
+	acct.Messages().Scroll()
 	store.Delete([]uint32{msg.Uid}, func(msg types.WorkerMessage) {
 		switch msg := msg.(type) {
 		case *types.Done: