Преглед изворни кода

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 година
родитељ
комит
88256206d7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 измењених фајлова са 7 додато и 0 уклоњено
  1. +7
    -0
      plugins/preview-tabbed

+ 7
- 0
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"



Loading…
Откажи
Сачувај