summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorssh0 <fuji101ijuf@gmail.com>2015-06-22 22:38:40 +0900
committerssh0 <fuji101ijuf@gmail.com>2015-06-22 22:38:40 +0900
commitbe22869e4e5b915d80186928ff22cca4a6f2309c (patch)
treec77444a0791973580d93620c841eeeaecf09f728
parent35dae7c6b524b8e0530ef58c10a0c2bda709082e (diff)
downloadranger-be22869e4e5b915d80186928ff22cca4a6f2309c.tar.gz
shrink height for tmux's top status bar (commented part)
-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)
t/html/baremetal/302stack_allocate.subx.html?h=main&id=7b109ab6528bfafa6ac8fd9340e5cc0217bcec50'>7b109ab6 ^
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122