summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-04-24 23:22:17 +0200
committerhut <hut@lavabit.com>2013-04-24 23:24:33 +0200
commita0beb20f1d742b946221b70140c92294b0fb167b (patch)
treea2eae017867be85cc83ff58321b2ea42572a161f /ranger
parent0b2f84884b987cd53973c9416ba8ae5d77e5e714 (diff)
downloadranger-a0beb20f1d742b946221b70140c92294b0fb167b.tar.gz
core.fm: draw images later
Diffstat (limited to 'ranger')
-rw-r--r--ranger/core/fm.py2
-rw-r--r--ranger/gui/ui.py6
-rw-r--r--ranger/gui/widgets/browserview.py2
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