aboutsummaryrefslogtreecommitdiffstats
path: root/commands/terminal/close.go
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-03-30 14:12:04 -0400
committerDrew DeVault <sir@cmpwn.com>2019-03-30 14:12:04 -0400
commitfa04a1e036a418258451466d99de34a9546a9965 (patch)
treeec409d99e9a306488c6ffb9b71683e171a2ec007 /commands/terminal/close.go
parent2958579ee75359dacfabb6d1b36664468011113c (diff)
downloadaerc-fa04a1e036a418258451466d99de34a9546a9965.tar.gz
Add basic message viewer mockup
Diffstat (limited to 'commands/terminal/close.go')
-rw-r--r--commands/terminal/close.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/terminal/close.go b/commands/terminal/close.go
index cb5702ee..0a9d100d 100644
--- a/commands/terminal/close.go
+++ b/commands/terminal/close.go
@@ -14,11 +14,11 @@ func CommandClose(aerc *widgets.Aerc, args []string) error {
if len(args) != 1 {
return errors.New("Usage: close")
}
- thost, ok := aerc.SelectedTab().(*widgets.TermHost)
+ term, ok := aerc.SelectedTab().(*widgets.Terminal)
if !ok {
return errors.New("Error: not a terminal")
}
- thost.Terminal().Close(nil)
- aerc.RemoveTab(thost)
+ term.Close(nil)
+ aerc.RemoveTab(term)
return nil
}