diff options
Diffstat (limited to 'commands/util.go')
-rw-r--r-- | commands/util.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/util.go b/commands/util.go index 92b851a4..1c4a8c9a 100644 --- a/commands/util.go +++ b/commands/util.go @@ -13,6 +13,7 @@ import ( "github.com/lithammer/fuzzysearch/fuzzy" "git.sr.ht/~rjarry/aerc/lib" + "git.sr.ht/~rjarry/aerc/logging" "git.sr.ht/~rjarry/aerc/models" "git.sr.ht/~rjarry/aerc/widgets" "github.com/gdamore/tcell/v2" @@ -51,6 +52,8 @@ func QuickTerm(aerc *widgets.Aerc, args []string, stdin io.Reader) (*widgets.Ter status := make(chan error, 1) go func() { + defer logging.PanicHandler() + _, err := io.Copy(pipe, stdin) defer pipe.Close() status <- err |