From 8f7695fde5cd84b7f6b8f3193270eda2fd62448c Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Tue, 26 Jul 2022 11:30:26 +0200 Subject: 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 Tested-by: Tim Culverhouse Acked-by: Robin Jarry --- commands/account/clear.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'commands/account') 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()) -- cgit