aboutsummaryrefslogtreecommitdiffstats
path: root/commands/compose/header.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/compose/header.go')
-rw-r--r--commands/compose/header.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/compose/header.go b/commands/compose/header.go
index e66df149..5c13fde5 100644
--- a/commands/compose/header.go
+++ b/commands/compose/header.go
@@ -33,11 +33,11 @@ func (Header) Options() string {
return "fd"
}
-func (Header) Complete(aerc *app.Aerc, args []string) []string {
- return commands.CompletionFromList(aerc, headers, args)
+func (Header) Complete(args []string) []string {
+ return commands.CompletionFromList(headers, args)
}
-func (h Header) Execute(aerc *app.Aerc, args []string) error {
+func (h Header) Execute(args []string) error {
opts, optind, err := getopt.Getopts(args, h.Options())
args = args[optind:]
if err == nil && len(args) < 1 {
@@ -58,7 +58,7 @@ func (h Header) Execute(aerc *app.Aerc, args []string) error {
}
}
- composer, _ := aerc.SelectedTabContent().(*app.Composer)
+ composer, _ := app.SelectedTabContent().(*app.Composer)
name := strings.TrimRight(args[0], ":")