utils: color_mark_selected: fix msg_items tuple size to 2
This commit is contained in:
parent
60b38d895c
commit
c70b52e5c1
1 changed files with 4 additions and 4 deletions
8
utils.py
8
utils.py
|
@ -232,12 +232,12 @@ def color_mark_selected(
|
||||||
|
|
||||||
marker_full = color_str(marker, use_colors=use_colors, **marker_config)
|
marker_full = color_str(marker, use_colors=use_colors, **marker_config)
|
||||||
|
|
||||||
msg_items = (color_str(profile_name, use_colors=use_colors, **msg_item_colors),)
|
msg_items = [color_str(profile_name, use_colors=use_colors, **msg_item_colors), '']
|
||||||
if inherited_from and inherited_from != profile_name:
|
if inherited_from and inherited_from != profile_name:
|
||||||
msg_items = msg_items + (''.join([
|
msg_items[1] = ''.join([
|
||||||
bold(' (inherited from profile "'),
|
bold(' (inherited from profile "'),
|
||||||
green(inherited_from, bold=True),
|
green(inherited_from, bold=True),
|
||||||
bold('")'),
|
bold('")'),
|
||||||
]),) # type: ignore[assignment]
|
])
|
||||||
output = f'{item}{suffix}{msg_fmt % msg_items}'
|
output = f'{item}{suffix}{msg_fmt % tuple(msg_items)}'
|
||||||
return '\n'.join([(marker_full + o) for o in output.split(split_on)])
|
return '\n'.join([(marker_full + o) for o in output.split(split_on)])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue