diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-03-30 14:12:04 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-30 14:12:04 -0400 |
commit | fa04a1e036a418258451466d99de34a9546a9965 (patch) | |
tree | ec409d99e9a306488c6ffb9b71683e171a2ec007 /commands/term.go | |
parent | 2958579ee75359dacfabb6d1b36664468011113c (diff) | |
download | aerc-fa04a1e036a418258451466d99de34a9546a9965.tar.gz |
Add basic message viewer mockup
Diffstat (limited to 'commands/term.go')
-rw-r--r-- | commands/term.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/term.go b/commands/term.go index aea6382..91ffebd 100644 --- a/commands/term.go +++ b/commands/term.go @@ -26,8 +26,7 @@ func Term(aerc *widgets.Aerc, args []string) error { if err != nil { return err } - host := widgets.NewTermHost(term, aerc.Config()) - tab := aerc.NewTab(host, args[1]) + tab := aerc.NewTab(term, args[1]) term.OnTitle = func(title string) { if title == "" { title = args[1] @@ -36,7 +35,7 @@ func Term(aerc *widgets.Aerc, args []string) error { tab.Content.Invalidate() } term.OnClose = func(err error) { - aerc.RemoveTab(host) + aerc.RemoveTab(term) if err != nil { aerc.PushStatus(" "+err.Error(), 10*time.Second). Color(tcell.ColorDefault, tcell.ColorRed) |