diff options
Diffstat (limited to 'commands/msgview')
-rw-r--r-- | commands/msgview/open.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/commands/msgview/open.go b/commands/msgview/open.go index f708b2d..4aa6133 100644 --- a/commands/msgview/open.go +++ b/commands/msgview/open.go @@ -60,10 +60,9 @@ func (Open) Execute(aerc *widgets.Aerc, args []string) error { return } - err = lib.OpenFile(tmpFile.Name()) - if err != nil { + lib.OpenFile(tmpFile.Name(), func(err error) { aerc.PushError(" " + err.Error()) - } + }) aerc.PushStatus("Opened", 10*time.Second) }) |