mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Merge pull request #1015 from luukvbaal/preview-tui
Fix preview-tui zombie pager
This commit is contained in:
commit
715abc7a3f
|
@ -305,8 +305,8 @@ if [ "$PREVIEW_MODE" ]; then
|
||||||
preview_file "$PWD/$1"
|
preview_file "$PWD/$1"
|
||||||
preview_fifo &
|
preview_fifo &
|
||||||
wait "$!"
|
wait "$!"
|
||||||
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
|
|
||||||
pkill -P "$$"
|
pkill -P "$$"
|
||||||
|
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
|
||||||
else
|
else
|
||||||
if [ ! -r "$NNN_FIFO" ]; then
|
if [ ! -r "$NNN_FIFO" ]; then
|
||||||
clear
|
clear
|
||||||
|
|
|
@ -404,8 +404,8 @@ if [ "$PREVIEW_MODE" ]; then
|
||||||
preview_file "$PWD/$1"
|
preview_file "$PWD/$1"
|
||||||
preview_fifo &
|
preview_fifo &
|
||||||
wait "$!"
|
wait "$!"
|
||||||
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
|
|
||||||
pkill -P "$$"
|
pkill -P "$$"
|
||||||
|
rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
|
||||||
else
|
else
|
||||||
if [ ! -r "$NNN_FIFO" ]; then
|
if [ ! -r "$NNN_FIFO" ]; then
|
||||||
clear
|
clear
|
||||||
|
|
Loading…
Reference in a new issue