diff options
-rw-r--r-- | ranger/core/fm.py | 2 | ||||
-rw-r--r-- | ranger/gui/ui.py | 6 | ||||
-rw-r--r-- | ranger/gui/widgets/browserview.py | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/ranger/core/fm.py b/ranger/core/fm.py index b0d34359..1f947935 100644 --- a/ranger/core/fm.py +++ b/ranger/core/fm.py @@ -313,6 +313,8 @@ class FM(Actions, SignalDispatcher): ui.set_load_mode(not loader.paused and loader.has_work()) + ui.draw_images() + ui.handle_input() if zombies: diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py index 83b324e3..0e29394a 100644 --- a/ranger/gui/ui.py +++ b/ranger/gui/ui.py @@ -310,8 +310,14 @@ class UI(DisplayableContainer): """Finalize every object in container and refresh the window""" DisplayableContainer.finalize(self) self.win.refresh() + + def draw_images(self): if self.pager.visible: self.pager.draw_image() + elif self.browser.pager.visible: + self.browser.pager.draw_image() + else: + self.browser.columns[-1].draw_image() def close_pager(self): if self.console.visible: diff --git a/ranger/gui/widgets/browserview.py b/ranger/gui/widgets/browserview.py index ee846f30..90586615 100644 --- a/ranger/gui/widgets/browserview.py +++ b/ranger/gui/widgets/browserview.py @@ -111,7 +111,6 @@ class BrowserView(Widget, DisplayableContainer): self.fm.ui.win.move(self.main_column.y, self.main_column.x) except: pass - self.pager.draw_image() else: try: x = self.main_column.x @@ -120,7 +119,6 @@ class BrowserView(Widget, DisplayableContainer): self.fm.ui.win.move(y, x) except: pass - self.columns[-1].draw_image() def _draw_borders(self): win = self.win |