diff options
author | hut <hut@lavabit.com> | 2013-02-15 23:56:14 +0100 |
---|---|---|
committer | hut <hut@lavabit.com> | 2013-02-15 23:56:14 +0100 |
commit | 311983e6f529c4b18d6e8264a5598591a8c98b37 (patch) | |
tree | eabeb2ada70d8c25bc23fc9626045964031b5466 | |
parent | c29059c87507bbcab6ca87b1bf1f396de6fc07f0 (diff) | |
download | ranger-311983e6f529c4b18d6e8264a5598591a8c98b37.tar.gz |
gui.bar: extra safety check
-rw-r--r-- | ranger/gui/bar.py | 2 |
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]) |