mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix preview-tui zombie pager
This commit is contained in:
parent
5fba2ba749
commit
5cc98987c5
|
@ -307,8 +307,8 @@ if [ "$PREVIEW_MODE" ]; then
|
|||
preview_file "$PWD/$1"
|
||||
preview_fifo &
|
||||
wait "$!"
|
||||
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
|
||||
pkill -P "$$"
|
||||
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
|
||||
else
|
||||
if [ ! -r "$NNN_FIFO" ]; then
|
||||
clear
|
||||
|
|
|
@ -404,8 +404,8 @@ if [ "$PREVIEW_MODE" ]; then
|
|||
preview_file "$PWD/$1"
|
||||
preview_fifo &
|
||||
wait "$!"
|
||||
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
|
||||
pkill -P "$$"
|
||||
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
|
||||
else
|
||||
if [ ! -r "$NNN_FIFO" ]; then
|
||||
clear
|
||||
|
|
Loading…
Reference in a new issue