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/msg/delete.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'commands/msg/delete.go') diff --git a/commands/msg/delete.go b/commands/msg/delete.go index fb0d1f81..39a9cc5c 100644 --- a/commands/msg/delete.go +++ b/commands/msg/delete.go @@ -4,8 +4,6 @@ import ( "errors" "time" - "github.com/gdamore/tcell" - "git.sr.ht/~sircmpwn/aerc/lib" "git.sr.ht/~sircmpwn/aerc/models" "git.sr.ht/~sircmpwn/aerc/widgets" @@ -49,8 +47,7 @@ func (Delete) Execute(aerc *widgets.Aerc, args []string) error { case *types.Done: aerc.PushStatus("Messages deleted.", 10*time.Second) case *types.Error: - aerc.PushStatus(" "+msg.Error.Error(), 10*time.Second). - Color(tcell.ColorDefault, tcell.ColorRed) + aerc.PushError(" "+msg.Error.Error()) } }) -- cgit