From 6db766260b7c23ec113e31010e0ac68105622956 Mon Sep 17 00:00:00 2001 From: Tim Culverhouse Date: Tue, 26 Jul 2022 08:13:21 -0500 Subject: sort: clear sort criteria when called without arguments Fix a regression introduced by commit c2f4404fca15 ("threading: enable filtering of server-side threads"). Prior to this commit, a :sort command (no args) would clear out the current sort criteria (or rather, apply the value from the config). Restore this functionality. Fixes: c2f4404fca15 ("threading: enable filtering of server-side threads") Reported-by: akspecs Signed-off-by: Tim Culverhouse Acked-by: Robin Jarry --- commands/account/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/account') diff --git a/commands/account/search.go b/commands/account/search.go index 290aafc..8209924 100644 --- a/commands/account/search.go +++ b/commands/account/search.go @@ -46,7 +46,7 @@ func (SearchFilter) Execute(aerc *widgets.Aerc, args []string) error { logging.Infof("Filter results: %v", store.Uids()) } } - store.Sort(nil, cb) + store.Sort(store.GetCurrentSortCriteria(), cb) } else { acct.SetStatus(statusline.Search("Searching...")) cb := func(uids []uint32) { -- cgit v1.2.3