mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +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_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