mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
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:
parent
56621705e8
commit
88256206d7
|
@ -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…
Reference in a new issue