summary refs log tree commit diff stats
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
parentb389735d681a26114377b747fe3a8fe1d3effd51 (diff)
downloadranger-7a66f1744c646d9f42e003cc992696ab10aeffda.tar.gz
widgets.pager: fix crash when not using img_display
-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
5-02-18 14:48:19 -0800 committer Kartik K. Agaram <vc@akkartik.com> 2015-02-18 14:48:19 -0800 782 - promote literate version to canonical C++ version' href='/akkartik/mu/commit/cpp/makefile?h=hlt&id=01b2852b653a81c4d5e197a0c52659c7e0dcaf5f'>01b2852b ^
6d943605 ^
88663269 ^
5f128523 ^


634fcea0 ^
88663269 ^
2a2856bb ^


634fcea0 ^
6ca059ef ^
634fcea0 ^
56ce5577 ^



01b2852b ^
56ce5577 ^

75cbfa28 ^
56ce5577 ^



75cbfa28 ^
88663269 ^
56ce5577 ^
01b2852b ^
75cbfa28 ^

88663269 ^
201b2e6c ^
88663269 ^
6d943605 ^
01b2852b ^
5f128523 ^
97f69507 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52