diff options
author | hut <hut@lavabit.com> | 2013-02-19 15:59:30 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-19 15:59:30 +0100 |
commit | 7a66f1744c646d9f42e003cc992696ab10aeffda (patch) | |
tree | 1c6588fb2b5b9e0aebb41c65472833de77151b62 | |
parent | b389735d681a26114377b747fe3a8fe1d3effd51 (diff) | |
download | ranger-7a66f1744c646d9f42e003cc992696ab10aeffda.tar.gz |
widgets.pager: fix crash when not using img_display
-rw-r--r-- | ranger/gui/widgets/pager.py | 2 |
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 |