Fix a regression in the previous release that broke active_tab_foreground

Fixes #4620
This commit is contained in:
Kovid Goyal
2022-02-03 18:12:42 +05:30
parent 6fa4110da9
commit 34a0218f35
4 changed files with 9 additions and 4 deletions

View File

@@ -203,7 +203,7 @@ def draw_title(draw_data: DrawData, screen: Screen, tab: TabBarData, index: int)
if eval_locals['activity_symbol'] and not template_has_field(template, 'activity_symbol'):
prefix += '{activity_symbol}'
if prefix:
template = '{fmt.fg.red}' + prefix + '{fmt.fg.default}' + template
template = '{fmt.fg.red}' + prefix + '{fmt.fg.tab}' + template
try:
title = eval(compile_template(template), {'__builtins__': {}}, eval_locals)
except Exception as e: