diff options
Diffstat (limited to 'commands/terminal/close.go')
-rw-r--r-- | commands/terminal/close.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/terminal/close.go b/commands/terminal/close.go index 0f72292e..5d52bbc5 100644 --- a/commands/terminal/close.go +++ b/commands/terminal/close.go @@ -16,15 +16,15 @@ func (Close) Aliases() []string { return []string{"close"} } -func (Close) Complete(aerc *app.Aerc, args []string) []string { +func (Close) Complete(args []string) []string { return nil } -func (Close) Execute(aerc *app.Aerc, args []string) error { +func (Close) Execute(args []string) error { if len(args) != 1 { return errors.New("Usage: close") } - term, _ := aerc.SelectedTabContent().(*app.Terminal) + term, _ := app.SelectedTabContent().(*app.Terminal) term.Close() return nil } |