summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--ranger/ext/img_display.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py
index 77f8acaa..d470fb24 100644
--- a/ranger/ext/img_display.py
+++ b/ranger/ext/img_display.py
@@ -125,5 +125,8 @@ def _get_font_dimensions():
         output, _ = process.communicate()
         output = output.split()
         xpixels, ypixels = int(output[0]), int(output[1])
+        # adjust for misplacement
+        xpixels += 2
+        ypixels += 2
 
     return (xpixels // cols), (ypixels // rows)