summary refs log tree commit diff stats
path: root/ranger
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-19 15:59:30 +0100
committerhut <hut@lavabit.com>2013-02-19 15:59:30 +0100
commit7a66f1744c646d9f42e003cc992696ab10aeffda (patch)
tree1c6588fb2b5b9e0aebb41c65472833de77151b62 /ranger
parentb389735d681a26114377b747fe3a8fe1d3effd51 (diff)
downloadranger-7a66f1744c646d9f42e003cc992696ab10aeffda.tar.gz
widgets.pager: fix crash when not using img_display
Diffstat (limited to 'ranger')
-rw-r--r--ranger/gui/widgets/pager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py
index de73ddc2..93f77a08 100644
--- a/ranger/gui/widgets/pager.py
+++ b/ranger/gui/widgets/pager.py
@@ -40,7 +40,7 @@ class Pager(Widget):
         self.need_redraw = True
 
     def clear_image(self, force=False):
-        if force or self.need_clear_image:
+        if (force or self.need_clear_image) and self.image_drawn:
             img_display.clear(self.x, self.y, self.wid, self.hei)
             self.need_clear_image = False
             self.image_drawn = False