fix bug: '--tag-width 0' does not remove tags

This commit is contained in:
Andrey Elizarov
2016-01-29 22:15:14 +03:00
parent a6815e906a
commit 9e2cca93e6
+1 -1
View File
@@ -334,7 +334,7 @@ while adb.poll() is None:
linebuf = '' linebuf = ''
# right-align tag title and allocate color if needed # right-align tag title and allocate color if needed
if tag != last_tag or args.always_tags: if (tag != last_tag or args.always_tags) and args.tag_width > 0:
last_tag = tag last_tag = tag
color = allocate_color(tag) color = allocate_color(tag)
tag = tag[-args.tag_width:].rjust(args.tag_width) tag = tag[-args.tag_width:].rjust(args.tag_width)