diff options
author | cdarkly <70930787+cdarkly@users.noreply.github.com> | 2020-09-19 12:55:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 22:25:53 +0530 |
commit | 88256206d7ed38b2142e6d4d267a7d5081be77e1 (patch) | |
tree | 95027597844524c00cdb35e0793cc7fa986d35f4 | |
parent | 56621705e8c041e95ba2f2c70d5e7473964b4055 (diff) | |
download | nnn-88256206d7ed38b2142e6d4d267a7d5081be77e1.tar.gz |
preview-tabbed will now exit with ^C (#734)
* preview-tabbed will not exit with ^C
* preview-tabbed will not exit with ^C
-rwxr-xr-x | plugins/preview-tabbed | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/preview-tabbed b/plugins/preview-tabbed index 6a55058..98a4be8 100755 --- a/plugins/preview-tabbed +++ b/plugins/preview-tabbed @@ -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" |