nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 831b434021d0ba0e783f203f8dc832e059a327d1
parent fa7c19c4097bfb71eef16060724c5bd8da424a9e
Author: Terminator X <engineerarun@gmail.com>
Date:   Mon,  4 Oct 2021 20:30:49 +0530

Merge pull request #1189 from luukvbaal/preview-tui

Remove preview-tui winch tmux workaround
Diffstat:
Mplugins/preview-tui | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/plugins/preview-tui b/plugins/preview-tui @@ -378,6 +378,13 @@ 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 @@ -385,9 +392,6 @@ winch_handler() { tail --follow "$FIFO_UEBERZUG" | ueberzug layer --silent --parser json & fi preview_file "$(cat "$CURSEL")" - if ! kill -0 "$NNN_PARENT" || ! pgrep nnn >/dev/null; then - pkill -P "$$" - fi } 2>/dev/null preview_fifo() {