aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/clear.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-07-26 11:30:26 +0200
committerRobin Jarry <robin@jarry.cc>2022-07-26 11:34:19 +0200
commit8f7695fde5cd84b7f6b8f3193270eda2fd62448c (patch)
tree27d2b58969b841f957fdbb8ad703f3d116eb5f9c /commands/account/clear.go
parent3b90b3b0ddfd8134daa1d417bdd7acd8c39781b7 (diff)
downloadaerc-8f7695fde5cd84b7f6b8f3193270eda2fd62448c.tar.gz
msgstore: implement a uid-based architecture
Change the message store architecture from an index-based to a uid-based one. Key advantage of this design approach is that no reselect mechanism is required anymore since it comes with the design for free. Fixes: https://todo.sr.ht/~rjarry/aerc/43 Signed-off-by: Koni Marti <koni.marti@gmail.com> Tested-by: Tim Culverhouse <tim@timculverhouse.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/account/clear.go')
-rw-r--r--commands/account/clear.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/commands/account/clear.go b/commands/account/clear.go
index 5bab7109..af7da324 100644
--- a/commands/account/clear.go
+++ b/commands/account/clear.go
@@ -51,8 +51,6 @@ func (Clear) Execute(aerc *widgets.Aerc, args []string) error {
if clearSelected {
defer store.Select(0)
- } else {
- store.SetReselect(store.Selected())
}
store.ApplyClear()
acct.SetStatus(statusline.SearchFilterClear())