summaryrefslogtreecommitdiff
path: root/commands/terminal/close.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/terminal/close.go')
-rw-r--r--commands/terminal/close.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/terminal/close.go b/commands/terminal/close.go
index 95ee94c..1698e93 100644
--- a/commands/terminal/close.go
+++ b/commands/terminal/close.go
@@ -24,7 +24,7 @@ func (Close) Execute(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: close")
}
- term, _ := aerc.SelectedTab().(*widgets.Terminal)
+ term, _ := aerc.SelectedTabContent().(*widgets.Terminal)
term.Close(nil)
return nil
}