aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msg/toggle-threads.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msg/toggle-threads.go')
-rw-r--r--commands/msg/toggle-threads.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/msg/toggle-threads.go b/commands/msg/toggle-threads.go
index 79d515cb..ac4242b8 100644
--- a/commands/msg/toggle-threads.go
+++ b/commands/msg/toggle-threads.go
@@ -34,6 +34,7 @@ func (ToggleThreads) Execute(aerc *widgets.Aerc, args []string) error {
if err != nil {
return err
}
+ defer store.Reselect(store.Selected())
store.SetBuildThreads(!store.BuildThreads())
acct.SetStatus(statusline.Threading(store.BuildThreads()))
acct.Messages().Invalidate()