Commit ba4b5411 authored by Dylan Araps's avatar Dylan Araps

Image: Fix cursor position in URxvt when using terminal padding

parent 5cede165
...@@ -2842,7 +2842,7 @@ dynamicprompt() { ...@@ -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
......
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