about summary refs log tree commit diff stats
path: root/commands/account/pipe.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/account/pipe.go')
-rw-r--r--commands/account/pipe.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/commands/account/pipe.go b/commands/account/pipe.go
index ab2518b..60ac793 100644
--- a/commands/account/pipe.go
+++ b/commands/account/pipe.go
@@ -41,12 +41,11 @@ func Pipe(aerc *widgets.Aerc, args []string) error {
 				Color(tcell.ColorDefault, tcell.ColorRed)
 			return
 		}
-		host := widgets.NewTermHost(term, aerc.Config())
 		name := msg.Subject()
 		if len(name) > 12 {
 			name = name[:12]
 		}
-		aerc.NewTab(host, args[1] + " <" + name)
+		aerc.NewTab(term, args[1] + " <" + name)
 		term.OnClose = func(err error) {
 			if err != nil {
 				aerc.PushStatus(" "+err.Error(), 10*time.Second).