Fix panic when parent process is killed

Fix #3863
pull/3871/head
Junegunn Choi 3 months ago
parent b2ecb6352c
commit 94c33ac020
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

@ -39,7 +39,7 @@ func printScript(label string, content []byte) {
}
func exit(code int, err error) {
if code == fzf.ExitError {
if code == fzf.ExitError && err != nil {
fmt.Fprintln(os.Stderr, err.Error())
}
os.Exit(code)

Loading…
Cancel
Save