From 8ea86cea41aa038a25a8fee9cd540a7336869dae Mon Sep 17 00:00:00 2001 From: Reto Brunner Date: Sat, 30 Jan 2021 13:51:32 +0100 Subject: Get rid of the aerc.PushError(" " + $string) idiom The individual callers should not be responsible for padding --- commands/term.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands/term.go') diff --git a/commands/term.go b/commands/term.go index 00f6937b..c28c7d08 100644 --- a/commands/term.go +++ b/commands/term.go @@ -46,7 +46,7 @@ func TermCore(aerc *widgets.Aerc, args []string) error { term.OnClose = func(err error) { aerc.RemoveTab(term) if err != nil { - aerc.PushError(" " + err.Error()) + aerc.PushError(err.Error()) } } return nil -- cgit