diff options
author | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-06 15:48:37 +0100 |
---|---|---|
committer | Wojciech Siewierski <wojciech.siewierski@onet.pl> | 2019-01-06 15:48:37 +0100 |
commit | 8d6b32b77e5a0d53582b8c1801c359574813f3d8 (patch) | |
tree | d94513dabfb1d517facdcfa016ae3c895f237826 | |
parent | e06e12efc456bdeb572de3da727d7959fe10ceef (diff) | |
download | ranger-8d6b32b77e5a0d53582b8c1801c359574813f3d8.tar.gz |
Fix the Kitty previews in fullscreen mode
Fixes #1431.
-rw-r--r-- | ranger/ext/img_display.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 9c84ce5e..7c9f35a7 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -484,7 +484,7 @@ class URXVTImageFSDisplayer(URXVTImageDisplayer): return self._get_centered_offsets() -class KittyImageDisplayer(ImageDisplayer): +class KittyImageDisplayer(ImageDisplayer, FileManagerAware): """Implementation of ImageDisplayer for kitty (https://github.com/kovidgoyal/kitty/) terminal. It uses the built APC to send commands and data to kitty, which in turn renders the image. The APC takes the form @@ -649,6 +649,8 @@ class KittyImageDisplayer(ImageDisplayer): # 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.fm.ui.win.redrawwin() + self.fm.ui.win.refresh() def _format_cmd_str(self, cmd, payload=None, max_slice_len=2048): central_blk = ','.join(["{}={}".format(k, v) for k, v in cmd.items()]).encode('ascii') |