summaryrefslogtreecommitdiff
path: root/commands/ct.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/ct.go')
-rw-r--r--commands/ct.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/commands/ct.go b/commands/ct.go
index f5f2cca..092d973 100644
--- a/commands/ct.go
+++ b/commands/ct.go
@@ -20,16 +20,11 @@ func (ChangeTab) Aliases() []string {
}
func (ChangeTab) Complete(aerc *widgets.Aerc, args []string) []string {
- acct := aerc.SelectedAccount()
- if acct == nil {
- return make([]string, 0)
- }
-
if len(args) == 0 {
return aerc.TabNames()
}
joinedArgs := strings.Join(args, " ")
- return FilterList(aerc.TabNames(), joinedArgs, "", acct.UiConfig().FuzzyComplete)
+ return FilterList(aerc.TabNames(), joinedArgs, "", aerc.SelectedAccountUiConfig().FuzzyComplete)
}
func (ChangeTab) Execute(aerc *widgets.Aerc, args []string) error {