summaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2022-03-21 22:18:51 +0100
committerRobin Jarry <robin@jarry.cc>2022-03-23 20:55:30 +0100
commitfeecc09b73e2c904be42f271e0c10574b98a95ea (patch)
tree3bc763d021ad55f42debfa326ed2340f0ae06b2b /commands
parente56648029f2231a58ed4afbbe804b845e02fde62 (diff)
downloadaerc-feecc09b73e2c904be42f271e0c10574b98a95ea.zip
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 <koni.marti@gmail.com> Tested-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'commands')
-rw-r--r--commands/account/cf.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/account/cf.go b/commands/account/cf.go
index ad93fdf..b5cda53 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
}