summary refs log tree commit diff stats
path: root/ranger
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 /ranger
parentc29059c87507bbcab6ca87b1bf1f396de6fc07f0 (diff)
downloadranger-311983e6f529c4b18d6e8264a5598591a8c98b37.tar.gz
gui.bar: extra safety check
Diffstat (limited to 'ranger')
-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])