From 10f4ddfc00ea9d4f6fb7b53bcb69e4613dc48d43 Mon Sep 17 00:00:00 2001 From: LeLobster Date: Sun, 7 Oct 2018 22:38:24 +0200 Subject: Resolve requested changes --- doc/ranger.1 | 6 +++--- doc/ranger.pod | 4 ++-- ranger/ext/img_display.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/ranger.1 b/doc/ranger.1 index b942ab79..069f56c9 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -129,7 +129,7 @@ .\" ======================================================================== .\" .IX Title "RANGER 1" -.TH RANGER 1 "ranger-1.9.2" "10/05/2018" "ranger manual" +.TH RANGER 1 "ranger-1.9.2" "10/07/2018" "ranger manual" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -295,8 +295,8 @@ This does not work over ssh, requires certain terminals (tested on \*(L"xterm\*( To enable this feature, install the program \*(L"w3m\*(R" and set the option \&\f(CW\*(C`preview_images_method\*(C'\fR to w3m. .PP -When using a terminal with a border larger than 0 which is not automatically detected the w3m preview will be misaligned. -Use the \f(CW\*(C`w3m_offset\*(C'\fR option to manually adjust the image offset. This should be the same value as the terminals' border value. +When using a terminal with a nonzero border which is not automatically detected, the w3m preview will be misaligned. +Use the \f(CW\*(C`w3m_offset\*(C'\fR option to manually adjust the image offset. This should be the same value as the terminal's border value. .PP \fIiTerm2\fR .IX Subsection "iTerm2" diff --git a/doc/ranger.pod b/doc/ranger.pod index a9aaad2c..d671ebbb 100644 --- a/doc/ranger.pod +++ b/doc/ranger.pod @@ -209,8 +209,8 @@ This does not work over ssh, requires certain terminals (tested on "xterm" and To enable this feature, install the program "w3m" and set the option C to w3m. -When using a terminal with a border larger than 0 which is not automatically detected the w3m preview will be misaligned. -Use the C option to manually adjust the image offset. This should be the same value as the terminals' border value. +When using a terminal with a nonzero border which is not automatically detected, the w3m preview will be misaligned. +Use the C option to manually adjust the image offset. This should be the same value as the terminal's border value. =head3 iTerm2 diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 9fed512e..3f5b5471 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -219,7 +219,7 @@ class W3MImageDisplayer(ImageDisplayer, FileManagerAware): width = (width * max_height_pixels) // height height = max_height_pixels - start_x = int(((start_x - 0.2) * fontw) + self.fm.settings.w3m_offset) + start_x = int((start_x - 0.2) * fontw) + self.fm.settings.w3m_offset start_y = (start_y * fonth) + self.fm.settings.w3m_offset return "0;1;{x};{y};{w};{h};;;;;{filename}\n4;\n3;\n".format( -- cgit 1.4.1-2-gfad0 tml?h=hlt&id=b28899fe3792f7cef535d49f0db5ab8a759b5db2'>plain) (blame)
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