diff options
author | LeLobster <nhoise@live.nl> | 2018-10-07 22:38:24 +0200 |
---|---|---|
committer | LeLobster <nhoise@live.nl> | 2018-10-07 22:38:24 +0200 |
commit | 10f4ddfc00ea9d4f6fb7b53bcb69e4613dc48d43 (patch) | |
tree | dfa036bd9fd969ba7a1278bbe5693d684466510b | |
parent | 2ababc06081e69d1b2410d57e11a4efad53f6ed4 (diff) | |
download | ranger-10f4ddfc00ea9d4f6fb7b53bcb69e4613dc48d43.tar.gz |
Resolve requested changes
-rw-r--r-- | doc/ranger.1 | 6 | ||||
-rw-r--r-- | doc/ranger.pod | 4 | ||||
-rw-r--r-- | 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<preview_images_method> 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<w3m_offset> 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<w3m_offset> 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( |