about summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parentab7a2b4b4b2de146695fe25fce2d4cf3d1a10047 (diff)
downloadranger-5a02902253b76fe39f36b9a63a52a24fba0c7142.tar.gz
Add decrement
When adding the max function call the decrementing was dropped.

Fixes #1603
Diffstat (limited to 'ranger')
-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()