about summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorFedor <fedorfdsv@gmail.com>2019-11-18 03:16:16 +0100
committertoonn <toonn@toonn.io>2020-11-15 19:05:45 +0100
commit16380bc58754851dd6fc9392619d70a0564d45c0 (patch)
treee723e56f05327214427229bd4209effa3ff52b13 /ranger
parentaa5495e4167fe7bcfd0e3274aaedd61f97e9e9c5 (diff)
downloadranger-16380bc58754851dd6fc9392619d70a0564d45c0.tar.gz
Fix ranger freeze after shell command during kitty preview
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 f056db3b..5ca55cc1 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 -= 1
+        self.image_id = (0, self.image_id)
         self.fm.ui.win.redrawwin()
         self.fm.ui.win.refresh()