Merge pull request #1084 from HolyStephano/master

Updated to fix new kitty bug prior to kitty fixes
This commit is contained in:
M. Herdiansyah 2018-09-02 23:37:35 +07:00 committed by GitHub
commit 565f714298
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3595,7 +3595,7 @@ get_window_size() {
fi fi
[[ "$image_backend" == "kitty" ]] && \ [[ "$image_backend" == "kitty" ]] && \
IFS=x read -r term_width term_height < <(kitty icat --print-window-size) IFS=x read -r term_width term_height < <(kitty +kitten icat --print-window-size)
# Get terminal width/height if \e[14t is unsupported. # Get terminal width/height if \e[14t is unsupported.
if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then if (( "${term_width:-0}" < 50 )) && [[ "$DISPLAY" && "$os" != "Mac OS X" ]]; then
@ -3774,7 +3774,7 @@ display_image() {
;; ;;
"kitty") "kitty")
kitty icat \ kitty +kitten icat \
--align left \ --align left \
--place "$((width/font_width))x$((height/font_height))@${xoffset}x${yoffset}" \ --place "$((width/font_width))x$((height/font_height))@${xoffset}x${yoffset}" \
"$image" "$image"