From 3cef02888ddbb677dec96f1688ad7d5e7db37c56 Mon Sep 17 00:00:00 2001 From: Wojciech Siewierski Date: Thu, 31 May 2018 09:27:06 +0200 Subject: Mitigate the issue with black horizontal bars Fixes #1192. --- ranger/ext/img_display.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 78d71cb2..f423830f 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -119,6 +119,13 @@ class W3MImageDisplayer(ImageDisplayer): input_gen = self._generate_w3m_input(path, start_x, start_y, width, height) except ImageDisplayError: raise + + # Mitigate the issue with the horizontal black bars when + # selecting some images on some systems. 2 milliseconds seems + # enough. Adjust as necessary. + from time import sleep + sleep(0.02) + self.process.stdin.write(input_gen) self.process.stdin.flush() self.process.stdout.readline() -- cgit 1.4.1-2-gfad0 aerc/refs/?h=0.1.2'>refs log tree commit diff stats
path: root/go.mod
blob: f3edcb4a31055e88316bb873d4e31aacbdc4e20b (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