aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/msg/utils.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands/msg/utils.go b/commands/msg/utils.go
index 8a00a35e..8210cae1 100644
--- a/commands/msg/utils.go
+++ b/commands/msg/utils.go
@@ -16,8 +16,12 @@ type helper struct {
}
func newHelper(aerc *widgets.Aerc) *helper {
+ msgProvider, ok := aerc.SelectedTabContent().(widgets.ProvidesMessages)
+ if !ok {
+ msgProvider = aerc.SelectedAccount()
+ }
return &helper{
- msgProvider: aerc.SelectedTabContent().(widgets.ProvidesMessages),
+ msgProvider: msgProvider,
statusInfo: func(s string) {
aerc.PushStatus(s, 10*time.Second)
},