From 88256206d7ed38b2142e6d4d267a7d5081be77e1 Mon Sep 17 00:00:00 2001 From: cdarkly <70930787+cdarkly@users.noreply.github.com> Date: Sat, 19 Sep 2020 12:55:53 -0400 Subject: preview-tabbed will now exit with ^C (#734) * preview-tabbed will not exit with ^C * preview-tabbed will not exit with ^C --- plugins/preview-tabbed | 7 +++++++ 1 file changed, 7 insertions(+) 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" -- cgit v1.2.3-70-g09d2