aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--widgets/account.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/widgets/account.go b/widgets/account.go
index 19385014..8b3e6a18 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -506,6 +506,9 @@ func (acct *AccountView) updateSplitView(msg *models.MessageInfo) {
acct.splitDebounce.Stop()
}
fn := func() {
+ if acct.split != nil {
+ acct.split.Close()
+ }
lib.NewMessageStoreView(msg, false, acct.Store(), acct.aerc.Crypto, acct.aerc.DecryptKeys,
func(view lib.MessageView, err error) {
if err != nil {