aboutsummaryrefslogtreecommitdiff
path: root/commands/ct.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/ct.go')
-rw-r--r--commands/ct.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/ct.go b/commands/ct.go
index ab2993d..19fb63a 100644
--- a/commands/ct.go
+++ b/commands/ct.go
@@ -19,6 +19,9 @@ func (_ ChangeTab) Aliases() []string {
}
func (_ ChangeTab) Complete(aerc *widgets.Aerc, args []string) []string {
+ if len(args) == 0 {
+ return aerc.TabNames()
+ }
out := make([]string, 0)
for _, tab := range aerc.TabNames() {
if strings.HasPrefix(tab, args[0]) {