about 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 b61c253f..d0a371f4 100644
--- a/ranger/ext/img_display.py
+++ b/ranger/ext/img_display.py
@@ -80,6 +80,7 @@ class W3MImageDisplayer(ImageDisplayer):
                 # y = int((start_y + 1) * fonth), # (for tmux top status bar)
                 w = int((width + 0.4) * fontw),
                 h = height * fonth + 1)
+                # h = (height - 1) * fonth + 1) # (for tmux top status bar)
 
         self.process.stdin.write(cmd)
         self.process.stdin.flush()
@@ -97,6 +98,8 @@ class W3MImageDisplayer(ImageDisplayer):
 
         max_width_pixels = max_width * fontw
         max_height_pixels = max_height * fonth - 2
+        # (for tmux top status bar)
+        # max_height_pixels = (max_height - 1) * fonth - 2
 
         # get image size
         cmd = "5;{}\n".format(path)
div>
d1a1173d ^
8fa87054 ^
e2393938 ^
06848dc3 ^
e52629c1 ^
f027adc0 ^
9f5eeff7 ^
e52629c1 ^

08f08fb9 ^
d8084b41 ^

b3d031a9 ^

08f08fb9 ^
cba63cf3 ^
e52629c1 ^
b3d031a9 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36