diff options
Diffstat (limited to 'commands/terminal/close.go')
-rw-r--r-- | commands/terminal/close.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/commands/terminal/close.go b/commands/terminal/close.go index 812266c0..0f72292e 100644 --- a/commands/terminal/close.go +++ b/commands/terminal/close.go @@ -3,7 +3,7 @@ package terminal import ( "errors" - "git.sr.ht/~rjarry/aerc/widgets" + "git.sr.ht/~rjarry/aerc/app" ) type Close struct{} @@ -16,15 +16,15 @@ func (Close) Aliases() []string { return []string{"close"} } -func (Close) Complete(aerc *widgets.Aerc, args []string) []string { +func (Close) Complete(aerc *app.Aerc, args []string) []string { return nil } -func (Close) Execute(aerc *widgets.Aerc, args []string) error { +func (Close) Execute(aerc *app.Aerc, args []string) error { if len(args) != 1 { return errors.New("Usage: close") } - term, _ := aerc.SelectedTabContent().(*widgets.Terminal) + term, _ := aerc.SelectedTabContent().(*app.Terminal) term.Close() return nil } |