aboutsummaryrefslogtreecommitdiffstats
path: root/commands/choose.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/choose.go')
-rw-r--r--commands/choose.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/choose.go b/commands/choose.go
index 64535ea6..3f1410cf 100644
--- a/commands/choose.go
+++ b/commands/choose.go
@@ -17,11 +17,11 @@ func (Choose) Aliases() []string {
return []string{"choose"}
}
-func (Choose) Complete(aerc *app.Aerc, args []string) []string {
+func (Choose) Complete(args []string) []string {
return nil
}
-func (Choose) Execute(aerc *app.Aerc, args []string) error {
+func (Choose) Execute(args []string) error {
if len(args) < 5 || len(args)%4 != 1 {
return chooseUsage(args[0])
}
@@ -38,7 +38,7 @@ func (Choose) Execute(aerc *app.Aerc, args []string) error {
})
}
- aerc.RegisterChoices(choices)
+ app.RegisterChoices(choices)
return nil
}