image: Fixed kitty image size.

This commit is contained in:
Dylan Araps 2018-05-28 10:28:14 +10:00
parent 29aabc97fa
commit b02ed9fff2
1 changed files with 5 additions and 1 deletions

View File

@ -3799,7 +3799,11 @@ display_image() {
;;
"kitty")
kitty icat --align left --place "${width}x${height}@${xoffset}x${yoffset}" "$image" ||\
kitty icat \
--align left \
--place "$((width / font_width))x$((height / font_height))\
@${xoffset}x${yoffset}" \
"$image" ||\
to_off "Image: kitty failed to display the image."
;;