about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorFedor <fedorfdsv@gmail.com>2019-11-18 15:43:31 +0100
committertoonn <toonn@toonn.io>2020-11-15 19:05:51 +0100
commitab7a2b4b4b2de146695fe25fce2d4cf3d1a10047 (patch)
tree40ebc81e641b35d2698f7b7967344b62f9d093b4 /ranger
parent16380bc58754851dd6fc9392619d70a0564d45c0 (diff)
downloadranger-ab7a2b4b4b2de146695fe25fce2d4cf3d1a10047.tar.gz
add forgotten max
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 5ca55cc1..31112071 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 = (0, self.image_id)
+        self.image_id = max(0, self.image_id)
         self.fm.ui.win.redrawwin()
         self.fm.ui.win.refresh()