From 26f380f154ce6160c2339fee6b1494b74ca5f552 Mon Sep 17 00:00:00 2001 From: Luuk van Baal Date: Tue, 9 Nov 2021 14:33:52 +0100 Subject: [PATCH] Proper fix for preview-tui zombie-pane --- plugins/preview-tui | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/preview-tui b/plugins/preview-tui index 0f5d60ed..e65bc43a 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -401,13 +401,6 @@ ueberzug_remove() { } winch_handler() { - # workaround for preview-tui tmux child causing zombie pane - if [ "$NNN_PARENT" -eq "$NNN_PARENT" ] 2>/dev/null; then - kill -0 "$NNN_PARENT" || return - else - pidof nnn || return - fi - clear kill "$(cat "$PREVIEWPID")" if [ -p "$FIFO_UEBERZUG" ]; then @@ -427,6 +420,7 @@ preview_fifo() { printf "%s" "$selection" > "$CURSEL" fi done < "$NNN_FIFO" + sleep 0.1 # make sure potential preview by winch_handler is killed pkill -P "$$" } 2>/dev/null