diff options
Diffstat (limited to 'commands')
-rw-r--r-- | commands/account/search.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/account/search.go b/commands/account/search.go index eeee7bdb..771c850f 100644 --- a/commands/account/search.go +++ b/commands/account/search.go @@ -34,6 +34,9 @@ func (SearchFilter) Execute(aerc *widgets.Aerc, args []string) error { var cb func([]uint32) if args[0] == "filter" { + if len(args[1:]) == 0 { + return Clear{}.Execute(aerc, []string{"clear"}) + } acct.SetStatus(statusline.FilterActivity("Filtering..."), statusline.Search("")) cb = func(uids []uint32) { acct.SetStatus(statusline.FilterResult(strings.Join(args, " "))) |