aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-09-30 01:48:32 +0200
committerMattias Andrée <maandree@kth.se>2016-09-30 01:48:32 +0200
commit34b92da96d15ae3160133b10a7bc989aafaad92b (patch)
treee0e19b7e52c09cf2e9c35ac3ea033071ec394fd9
parentmem: add .keys (diff)
downloadxpybar-34b92da96d15ae3160133b10a7bc989aafaad92b.tar.gz
xpybar-34b92da96d15ae3160133b10a7bc989aafaad92b.tar.bz2
xpybar-34b92da96d15ae3160133b10a7bc989aafaad92b.tar.xz
Fix drawing bug in Bar.partial_clear
Signed-off-by: Mattias Andrée <maandree@kth.se>
-rwxr-xr-xsrc/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/__main__.py b/src/__main__.py
index 6bce7a3..8abfa45 100755
--- a/src/__main__.py
+++ b/src/__main__.py
@@ -408,7 +408,7 @@ class Bar:
for part in parts:
w = Bar.coloured_length(part) * self.font_width
x_ = int((width - w) * i / n)
- if w > 0:
+ if w >= 0:
areas_.append((x_, x_ + w))
i += 1
x1 = areas_[0][1]