Halve font width on iTerm2

This commit is contained in:
Dylan Araps 2016-05-28 14:01:44 +10:00
parent bd070d5059
commit a98d96eb8c

View file

@ -2207,7 +2207,12 @@ getimage () {
columns=$(tput cols)
# Calculate font size
font_width=$((term_width / columns))
if [ "$os" == "Mac OS X" ]; then
font_width=$((term_width / columns))
else
# Fixes padding issues in iTerm2.
font_width=$((term_width / columns / 2))
fi
# Image size is half of the terminal
case "$image_size" in