image: Fixed tycat size.

This commit is contained in:
Dylan Araps 2018-05-28 09:33:47 +10:00
parent e04302ccec
commit b981fb50fa
1 changed files with 2 additions and 2 deletions

View File

@ -3835,7 +3835,7 @@ display_image() {
;;
"tycat")
tycat "$image" ||\
tycat -g "${width}x${height}" "$image" ||\
to_off "Image: tycat failed to display the image."
;;
@ -4193,7 +4193,7 @@ kde_config_dir() {
dynamic_prompt() {
[[ "$image_backend" == "off" ]] && { printf "\n"; return; }
[[ "$image_backend" != "ascii" ]] && lines="$(((height + yoffset) / font_height))"
[[ "$image_backend" != "ascii" ]] && lines="$(((height + yoffset) / font_height + 1))"
# If the ascii art is taller than the info.
if ((lines > info_height)); then