aboutsummaryrefslogtreecommitdiffstats
path: root/commands/msgview/open-link.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/msgview/open-link.go')
-rw-r--r--commands/msgview/open-link.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/commands/msgview/open-link.go b/commands/msgview/open-link.go
index d19dfae0..257a2fdc 100644
--- a/commands/msgview/open-link.go
+++ b/commands/msgview/open-link.go
@@ -5,6 +5,7 @@ import (
"git.sr.ht/~rjarry/aerc/commands"
"git.sr.ht/~rjarry/aerc/lib"
+ "git.sr.ht/~rjarry/aerc/log"
"git.sr.ht/~rjarry/aerc/widgets"
)
@@ -33,6 +34,7 @@ func (OpenLink) Execute(aerc *widgets.Aerc, args []string) error {
return errors.New("Usage: open-link <url>")
}
go func() {
+ defer log.PanicHandler()
if err := lib.XDGOpen(args[1]); err != nil {
aerc.PushError("open-link: " + err.Error())
}