Skip to content

Commit b981fb5

Browse files
committed
image: Fixed tycat size.
1 parent e04302c commit b981fb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neofetch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3835,7 +3835,7 @@ display_image() {
38353835
;;
38363836

38373837
"tycat")
3838-
tycat "$image" ||\
3838+
tycat -g "${width}x${height}" "$image" ||\
38393839
to_off "Image: tycat failed to display the image."
38403840
;;
38413841

@@ -4193,7 +4193,7 @@ kde_config_dir() {
41934193

41944194
dynamic_prompt() {
41954195
[[ "$image_backend" == "off" ]] && { printf "\n"; return; }
4196-
[[ "$image_backend" != "ascii" ]] && lines="$(((height + yoffset) / font_height))"
4196+
[[ "$image_backend" != "ascii" ]] && lines="$(((height + yoffset) / font_height + 1))"
41974197

41984198
# If the ascii art is taller than the info.
41994199
if ((lines > info_height)); then

0 commit comments

Comments
 (0)