mirror of
https://github.com/imcarlost/pidcat-repl.git
synced 2026-08-08 23:17:43 -04:00
fix bug: '--tag-width 0' does not remove tags
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user