From 7c89143c709e58f22a4939886ccb15bd639eec17 Mon Sep 17 00:00:00 2001 From: Ben Fiedler Date: Thu, 23 Apr 2020 03:56:28 +0200 Subject: Use aerc.PushError where appropriate Forgot an unused import, to save you the hassle here is v2. --- commands/term.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'commands/term.go') diff --git a/commands/term.go b/commands/term.go index 459f4059..c75fda5f 100644 --- a/commands/term.go +++ b/commands/term.go @@ -2,12 +2,10 @@ package commands import ( "os/exec" - "time" - "git.sr.ht/~sircmpwn/aerc/widgets" - - "github.com/gdamore/tcell" "github.com/riywo/loginshell" + + "git.sr.ht/~sircmpwn/aerc/widgets" ) type Term struct{} @@ -48,8 +46,7 @@ func TermCore(aerc *widgets.Aerc, args []string) error { term.OnClose = func(err error) { aerc.RemoveTab(term) if err != nil { - aerc.PushStatus(" "+err.Error(), 10*time.Second). - Color(tcell.ColorDefault, tcell.ColorRed) + aerc.PushError(" "+err.Error()) } } return nil -- cgit