From c70b52e5c1192f9ac271dd104c1745395979acee Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Sun, 9 Jul 2023 03:13:54 +0200 Subject: [PATCH] utils: color_mark_selected: fix msg_items tuple size to 2 --- utils.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils.py b/utils.py index f07c2c9..df40a97 100644 --- a/utils.py +++ b/utils.py @@ -232,12 +232,12 @@ def color_mark_selected( 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: - msg_items = msg_items + (''.join([ + msg_items[1] = ''.join([ bold(' (inherited from profile "'), green(inherited_from, bold=True), 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)])