summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-15 23:56:14 +0100
committerhut <hut@lavabit.com>2013-02-15 23:56:14 +0100
commit311983e6f529c4b18d6e8264a5598591a8c98b37 (patch)
treeeabeb2ada70d8c25bc23fc9626045964031b5466
parentc29059c87507bbcab6ca87b1bf1f396de6fc07f0 (diff)
downloadranger-311983e6f529c4b18d6e8264a5598591a8c98b37.tar.gz
gui.bar: extra safety check
-rw-r--r--ranger/gui/bar.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/bar.py b/ranger/gui/bar.py
index a6596bf5..ebd56166 100644
--- a/ranger/gui/bar.py
+++ b/ranger/gui/bar.py
@@ -115,7 +115,7 @@ class ColoredString(object):
         self.string = WideString(string)
         self.lst = lst
         self.fixed = False
-        if not len(string):
+        if not len(string) or not len(self.string.chars):
             self.min_size = 0
         elif PY3:
             self.min_size = utf_char_width(string[0])
n123' href='#n123'>123 124 125 126 127 128 129 130 131 132 133 134
 11:55:45 +0100

doc/colorschemes: ugh, its no logical but bitwise OR!' href='/akspecs/ranger/commit/doc/colorschemes.txt?h=v1.5.5&id=9a735f62cfb4a16eb711750883f68f8099508f4b'>9a735f62 ^
efdc7b16 ^









a8f9cf2c ^

efdc7b16 ^

a2853ab6 ^
efdc7b16 ^






a2853ab6 ^
efdc7b16 ^







a8f9cf2c ^

efdc7b16 ^














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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101