From 95e1d56ee4d94b5262605ba75bf3478ff4359cf0 Mon Sep 17 00:00:00 2001 From: Luuk van Baal Date: Sun, 7 Aug 2022 16:40:12 +0200 Subject: [PATCH] Preview-tui fix image_preview stdout --- plugins/preview-tui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/preview-tui b/plugins/preview-tui index fdc79efc..14263275 100755 --- a/plugins/preview-tui +++ b/plugins/preview-tui @@ -379,7 +379,6 @@ generate_preview() { printf "%s" "$!" > "$PREVIEWPID" return else - exec >/dev/tty image_preview "$1" "$2" "$3" return fi ;; @@ -405,6 +404,7 @@ generate_preview() { image_preview() { clear + exec >/dev/tty if [ "$TERMINAL" = "kitty" ]; then # Kitty terminal users can use the native image preview method kitty +kitten icat --silent --scale-up --place "$1"x"$2"@0x0 --transfer-mode=stream --stdin=no "$3" &