Commit b981fb50 authored by Dylan Araps's avatar Dylan Araps

image: Fixed tycat size.

parent e04302cc
...@@ -3835,7 +3835,7 @@ display_image() { ...@@ -3835,7 +3835,7 @@ display_image() {
;; ;;
"tycat") "tycat")
tycat "$image" ||\ tycat -g "${width}x${height}" "$image" ||\
to_off "Image: tycat failed to display the image." to_off "Image: tycat failed to display the image."
;; ;;
...@@ -4193,7 +4193,7 @@ kde_config_dir() { ...@@ -4193,7 +4193,7 @@ kde_config_dir() {
dynamic_prompt() { dynamic_prompt() {
[[ "$image_backend" == "off" ]] && { printf "\n"; return; } [[ "$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 the ascii art is taller than the info.
if ((lines > info_height)); then if ((lines > info_height)); then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment