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
1 changed files with 1 additions and 1 deletions

View File

@ -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