preview-tabbed will now exit with ^C (#734)

* preview-tabbed will not exit with ^C

* preview-tabbed will not exit with ^C
This commit is contained in:
cdarkly 2020-09-19 12:55:53 -04:00 committed by GitHub
parent 56621705e8
commit 88256206d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,6 +100,12 @@ kill_viewer () {
fi
}
sigint_kill () {
kill_viewer
kill "$TABBEDPID"
exit 0
}
previewer_loop () {
unset -v NNN_FIFO
# mute from now
@ -108,6 +114,7 @@ previewer_loop () {
MAINWINDOW="$(xdotool getactivewindow)"
start_tabbed
trap sigint_kill SIGINT
xdotool windowactivate "$MAINWINDOW"