aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview/toggle-headers.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview/toggle-headers.go')
-rw-r--r--commands/msgview/toggle-headers.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/msgview/toggle-headers.go b/commands/msgview/toggle-headers.go
index 0bb834a9..746692fd 100644
--- a/commands/msgview/toggle-headers.go
+++ b/commands/msgview/toggle-headers.go
@@ -16,15 +16,15 @@ func (ToggleHeaders) Aliases() []string {
return []string{"toggle-headers"}
}
-func (ToggleHeaders) Complete(aerc *app.Aerc, args []string) []string {
+func (ToggleHeaders) Complete(args []string) []string {
return nil
}
-func (ToggleHeaders) Execute(aerc *app.Aerc, args []string) error {
+func (ToggleHeaders) Execute(args []string) error {
if len(args) > 1 {
return toggleHeadersUsage(args[0])
}
- mv, _ := aerc.SelectedTabContent().(*app.MessageViewer)
+ mv, _ := app.SelectedTabContent().(*app.MessageViewer)
mv.ToggleHeaders()
return nil
}