summaryrefslogtreecommitdiff
path: root/commands/account
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-07-05 14:48:41 -0500
committerRobin Jarry <robin@jarry.cc>2022-07-10 21:15:12 +0200
commita953e4dbe914def4275a6ddfc16e3046804fe03e (patch)
tree1f13c056b0f80caf5f2d9ac00792839ed198f14d /commands/account
parentc2f4404fca15be37228545b1893f5fa335168337 (diff)
downloadaerc-a953e4dbe914def4275a6ddfc16e3046804fe03e.zip
threading: refactor reselect logic
This patch refactors reselection of a message during certain operations (searching, filtering, clearing, deleting, moving, new message arrival). The addition of server-side filtering for threaded views broke the existing reselection logic. Signed-off-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/account')
-rw-r--r--commands/account/clear.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/account/clear.go b/commands/account/clear.go
index 69fac2d..5bab710 100644
--- a/commands/account/clear.go
+++ b/commands/account/clear.go
@@ -52,9 +52,8 @@ func (Clear) Execute(aerc *widgets.Aerc, args []string) error {
if clearSelected {
defer store.Select(0)
} else {
- defer store.Reselect(store.Selected())
+ store.SetReselect(store.Selected())
}
-
store.ApplyClear()
acct.SetStatus(statusline.SearchFilterClear())