mirror of
https://github.com/powerline/powerline.git
synced 2025-07-23 13:55:45 +02:00
Rename update_state to branch in powerline.segments.vim.BranchSegment
This commit is contained in:
parent
388cccb3cf
commit
a31d6f00a7
@ -359,15 +359,15 @@ class BranchSegment(RepositorySegment):
|
|||||||
def process_repo(repo):
|
def process_repo(repo):
|
||||||
return repo.branch()
|
return repo.branch()
|
||||||
|
|
||||||
def render_one(self, update_state, segment_info, status_colors=False, **kwargs):
|
def render_one(self, branch, segment_info, status_colors=False, **kwargs):
|
||||||
if not update_state:
|
if not branch:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if status_colors:
|
if status_colors:
|
||||||
self.started_repository_status = True
|
self.started_repository_status = True
|
||||||
|
|
||||||
return [{
|
return [{
|
||||||
'contents': update_state,
|
'contents': branch,
|
||||||
'highlight_group': (['branch_dirty' if repository_status(segment_info=segment_info, **kwargs) else 'branch_clean']
|
'highlight_group': (['branch_dirty' if repository_status(segment_info=segment_info, **kwargs) else 'branch_clean']
|
||||||
if status_colors else []) + ['branch'],
|
if status_colors else []) + ['branch'],
|
||||||
'divider_highlight_group': 'branch:divider',
|
'divider_highlight_group': 'branch:divider',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user