aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/sort.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/sort.go')
-rw-r--r--commands/account/sort.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/commands/account/sort.go b/commands/account/sort.go
index 15ecbc0c..ad1a402d 100644
--- a/commands/account/sort.go
+++ b/commands/account/sort.go
@@ -20,11 +20,6 @@ func (Sort) Aliases() []string {
}
func (Sort) Complete(aerc *widgets.Aerc, args []string) []string {
- acct := aerc.SelectedAccount()
- if acct == nil {
- return make([]string, 0)
- }
-
supportedCriteria := []string{
"arrival",
"cc",
@@ -61,7 +56,7 @@ func (Sort) Complete(aerc *widgets.Aerc, args []string) []string {
}
// the last item is not complete
completions = commands.FilterList(supportedCriteria, last, currentPrefix,
- acct.UiConfig().FuzzyComplete)
+ aerc.SelectedAccountUiConfig().FuzzyComplete)
return completions
}