diff options
Diffstat (limited to 'commands/msg/delete.go')
-rw-r--r-- | commands/msg/delete.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/msg/delete.go b/commands/msg/delete.go index 9a07e509..6d3fb4a3 100644 --- a/commands/msg/delete.go +++ b/commands/msg/delete.go @@ -56,11 +56,11 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error { mv, isMsgView := h.msgProvider.(*widgets.MessageViewer) if isMsgView { if !config.Ui.NextMessageOnDelete { - aerc.RemoveTab(h.msgProvider) + aerc.RemoveTab(h.msgProvider, true) } else { // no more messages in the list if next == nil { - aerc.RemoveTab(h.msgProvider) + aerc.RemoveTab(h.msgProvider, true) acct.Messages().Select(-1) ui.Invalidate() return @@ -73,7 +73,7 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error { return } nextMv := widgets.NewMessageViewer(acct, view) - aerc.ReplaceTab(mv, nextMv, next.Envelope.Subject) + aerc.ReplaceTab(mv, nextMv, next.Envelope.Subject, true) }) } } else { |