Image: Fix cursor position in URxvt when using terminal padding

This commit is contained in:
Dylan Araps 2016-11-02 17:17:09 +11:00
parent 5cede165cf
commit ba4b541167

View file

@ -2842,7 +2842,7 @@ dynamicprompt() {
# Calculate image height in terminal cells.
if [ "$image" != "ascii" ]; then
gettermpadding
lines="$(((height + ${border:-0} + ${yoffset:-0}) / font_height))"
lines="$(((height + (${border:-0} * 2) + ${yoffset:-0}) / font_height))"
else
lines="$((lines-=2))"
fi