]> Sergey Matveev's repositories - nnn.git/commitdiff
Hide terminated message in preview-tui
authorLuuk van Baal <luukvbaal@gmail.com>
Sun, 16 May 2021 20:56:47 +0000 (22:56 +0200)
committerLuuk van Baal <luukvbaal@gmail.com>
Sun, 16 May 2021 20:56:47 +0000 (22:56 +0200)
plugins/preview-tui
plugins/preview-tui-ext

index 854907bc68c49329a1be693e77de34eb19725a6e..f4cee6c9c58bd5210c4de697655a0db8670ae99a 100755 (executable)
@@ -306,7 +306,7 @@ if [ "$PREVIEW_MODE" ]; then
     printf "%s" "$PWD/$1" > "$CURSEL"
     preview_file "$PWD/$1"
     preview_fifo &
-    wait "$!"
+    wait "$!" 2>/dev/null
     pkill -P "$$"
     rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
 else
index c88389b91b217c66dcf4aa6e42167ba9acbd98ca..e10cad85bfc27b14d2e597fc53afb11e33b3068d 100755 (executable)
@@ -403,7 +403,7 @@ if [ "$PREVIEW_MODE" ]; then
     printf "%s" "$PWD/$1" > "$CURSEL"
     preview_file "$PWD/$1"
     preview_fifo &
-    wait "$!"
+    wait "$!" 2>/dev/null
     pkill -P "$$"
     rm "$PAGERPID" "$IMGPID" "$CURSEL" "$FIFO_UEBERZUG" "$FIFOPID" 2>/dev/null
 else