about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2020-11-15 19:07:31 +0100
committertoonn <toonn@toonn.io>2020-11-15 19:07:31 +0100
commit5a02902253b76fe39f36b9a63a52a24fba0c7142 (patch)
treec9d531ac31484e56093c3415649ca5291fcfcfb6
parentab7a2b4b4b2de146695fe25fce2d4cf3d1a10047 (diff)
downloadranger-5a02902253b76fe39f36b9a63a52a24fba0c7142.tar.gz
Add decrement
When adding the max function call the decrementing was dropped.

Fixes #1603
-rw-r--r--ranger/ext/img_display.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py
index 31112071..b738f458 100644
--- a/ranger/ext/img_display.py
+++ b/ranger/ext/img_display.py
@@ -683,7 +683,7 @@ class KittyImageDisplayer(ImageDisplayer, FileManagerAware):
         self.stdbout.flush()
         # kitty doesn't seem to reply on deletes, checking like we do in draw()
         # will slows down scrolling with timeouts from select
-        self.image_id = max(0, self.image_id)
+        self.image_id = max(0, self.image_id - 1)
         self.fm.ui.win.redrawwin()
         self.fm.ui.win.refresh()
 
reference to the man page' href='/akspecs/ranger/commit/README?h=v1.8.1&id=4833bc2383e30ccd3fb500497e9d1af7d056f066'>4833bc23 ^
4ea0f69a ^

712aa449
9e89f023 ^

e952d6cb ^
36e4e71e ^
e952d6cb ^
9e89f023 ^
e952d6cb ^



9e89f023 ^


36e4e71e ^
20ab9343 ^








4ea0f69a ^

36e4e71e ^
e952d6cb ^
36e4e71e ^

78a7d762 ^
e952d6cb ^
78a7d762 ^
e952d6cb ^
4ea0f69a ^

7838675f ^








755e7df1 ^
7838675f ^
500cf259 ^



bf14a7e7 ^
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