aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/msg/archive.go3
-rw-r--r--commands/msg/delete.go3
-rw-r--r--commands/msg/move.go3
3 files changed, 6 insertions, 3 deletions
diff --git a/commands/msg/archive.go b/commands/msg/archive.go
index da4c421c..4fe73306 100644
--- a/commands/msg/archive.go
+++ b/commands/msg/archive.go
@@ -34,7 +34,8 @@ func Archive(aerc *widgets.Aerc, args []string) error {
msg := widget.SelectedMessage()
store := widget.Store()
archiveDir := acct.AccountConfig().Archive
- acct.Messages().Next()
+ store.Next()
+ acct.Messages().Scroll()
switch args[1] {
case ARCHIVE_MONTH:
diff --git a/commands/msg/delete.go b/commands/msg/delete.go
index 082dbe35..ee3dd290 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:
diff --git a/commands/msg/move.go b/commands/msg/move.go
index 5300c5a4..23670768 100644
--- a/commands/msg/move.go
+++ b/commands/msg/move.go
@@ -45,7 +45,8 @@ func Move(aerc *widgets.Aerc, args []string) error {
if isMsgView {
aerc.RemoveTab(widget)
}
- acct.Messages().Next()
+ store.Next()
+ acct.Messages().Scroll()
store.Move([]uint32{msg.Uid}, args[optind], createParents, func(
msg types.WorkerMessage) {