1
1
mirror of https://github.com/jarun/nnn.git synced 2024-09-11 13:06:14 +03:00

Preview-tui fix image_preview stdout

This commit is contained in:
Luuk van Baal 2022-08-07 16:40:12 +02:00
parent a335f94d05
commit 95e1d56ee4
No known key found for this signature in database
GPG Key ID: E7D1BC845D39FA83

View File

@ -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" &