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])
12 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149