mirror of
https://github.com/powerline/powerline.git
synced 2025-07-28 16:24:57 +02:00
Use tab_modified_indicator highlight group
This commit is contained in:
parent
58b7e6c800
commit
9cab9d6fff
@ -173,6 +173,8 @@ def tab_modified_indicator(pl, segment_info, text='+'):
|
|||||||
|
|
||||||
:param string text:
|
:param string text:
|
||||||
text to display if any buffer in the current tab is modified
|
text to display if any buffer in the current tab is modified
|
||||||
|
|
||||||
|
Highlight groups used: ``tab_modified_indicator`` or ``modified_indicator``.
|
||||||
'''
|
'''
|
||||||
if 'tabpage' in segment_info:
|
if 'tabpage' in segment_info:
|
||||||
buffers = [dict(buffer=w.buffer) for w in segment_info['tabpage'].windows]
|
buffers = [dict(buffer=w.buffer) for w in segment_info['tabpage'].windows]
|
||||||
@ -181,7 +183,7 @@ def tab_modified_indicator(pl, segment_info, text='+'):
|
|||||||
if ret:
|
if ret:
|
||||||
return [{
|
return [{
|
||||||
'contents': ret,
|
'contents': ret,
|
||||||
'highlight_group': ['modified_indicator'],
|
'highlight_group': ['tab_modified_indicator', 'modified_indicator'],
|
||||||
}]
|
}]
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user