Browse Source

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

* preview-tabbed will not exit with ^C

* preview-tabbed will not exit with ^C
master
cdarkly GitHub 4 years ago
parent
commit
88256206d7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      plugins/preview-tabbed

+ 7
- 0
plugins/preview-tabbed 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"



Loading…
Cancel
Save