aboutsummaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/msg/move.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/msg/move.go b/commands/msg/move.go
index 6e77a88c..fc35c41b 100644
--- a/commands/msg/move.go
+++ b/commands/msg/move.go
@@ -93,8 +93,10 @@ func handleDone(
mv, isMsgView := h.msgProvider.(*widgets.MessageViewer)
switch {
case isMsgView && !config.Ui.NextMessageOnDelete:
+ mv.Close()
aerc.RemoveTab(h.msgProvider)
case isMsgView:
+ mv.Close()
if next == nil {
aerc.RemoveTab(h.msgProvider)
acct.Messages().Select(-1)