mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 03:59:58 +00:00
Image: Fix cursor position in URxvt when using terminal padding
This commit is contained in:
2
neofetch
2
neofetch
@@ -2842,7 +2842,7 @@ dynamicprompt() {
|
|||||||
# Calculate image height in terminal cells.
|
# Calculate image height in terminal cells.
|
||||||
if [ "$image" != "ascii" ]; then
|
if [ "$image" != "ascii" ]; then
|
||||||
gettermpadding
|
gettermpadding
|
||||||
lines="$(((height + ${border:-0} + ${yoffset:-0}) / font_height))"
|
lines="$(((height + (${border:-0} * 2) + ${yoffset:-0}) / font_height))"
|
||||||
else
|
else
|
||||||
lines="$((lines-=2))"
|
lines="$((lines-=2))"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user