diff --git a/plugins/preview-tui b/plugins/preview-tui index 5f0ff856..63b1e057 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -380,6 +380,9 @@ winch_handler() { tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json & fi preview_file "$(cat "$CURSEL")" + if ! kill -0 "$NNN_PARENT" || ! pgrep nnn; then + pkill -P "$$" + fi } 2>/dev/null preview_fifo() {