mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
...
This commit is contained in:
@@ -199,11 +199,11 @@ def draw_title(draw_data: DrawData, screen: Screen, tab: TabBarData, index: int)
|
|||||||
template = draw_data.active_title_template
|
template = draw_data.active_title_template
|
||||||
prefix = ''
|
prefix = ''
|
||||||
if eval_locals['bell_symbol'] and not template_has_field(template, 'bell_symbol'):
|
if eval_locals['bell_symbol'] and not template_has_field(template, 'bell_symbol'):
|
||||||
prefix = '{fmt.fg.red}{bell_symbol}{fmt.fg.default}'
|
prefix = '{bell_symbol}'
|
||||||
if eval_locals['activity_symbol'] and not template_has_field(template, 'activity_symbol'):
|
if eval_locals['activity_symbol'] and not template_has_field(template, 'activity_symbol'):
|
||||||
prefix += '{fmt.fg.red}{activity_symbol}{fmt.fg.default}'
|
prefix += '{activity_symbol}'
|
||||||
if prefix:
|
if prefix:
|
||||||
template = prefix + template
|
template = '{fmt.fg.red}' + prefix + '{fmt.fg.default}' + template
|
||||||
try:
|
try:
|
||||||
title = eval(compile_template(template), {'__builtins__': {}}, eval_locals)
|
title = eval(compile_template(template), {'__builtins__': {}}, eval_locals)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user