From feecc09b73e2c904be42f271e0c10574b98a95ea Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Mon, 21 Mar 2022 22:18:51 +0100 Subject: statusline: make statusline folder-specific Make statusline folder-specific. Update filter, search and threading status when changing folders. Commit 2512c04 ("statusline: implement per-account status") introduced an account-specific statusline. This makes it account- and folder-specific. Signed-off-by: Koni Marti Tested-by: Moritz Poldrack --- commands/account/cf.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'commands') diff --git a/commands/account/cf.go b/commands/account/cf.go index ad93fdf6..b5cda53f 100644 --- a/commands/account/cf.go +++ b/commands/account/cf.go @@ -5,6 +5,7 @@ import ( "strings" "git.sr.ht/~rjarry/aerc/commands" + "git.sr.ht/~rjarry/aerc/lib/statusline" "git.sr.ht/~rjarry/aerc/widgets" ) @@ -52,6 +53,7 @@ func (ChangeFolder) Execute(aerc *widgets.Aerc, args []string) error { store := acct.Store() if store != nil { store.ApplyClear() + acct.SetStatus(statusline.SearchFilterClear()) } return nil } -- cgit