Rename update_state to branch in powerline.segments.vim.BranchSegment

This commit is contained in:
ZyX 2013-03-30 16:58:18 +04:00
parent 388cccb3cf
commit a31d6f00a7
1 changed files with 3 additions and 3 deletions

View File

@ -359,15 +359,15 @@ class BranchSegment(RepositorySegment):
def process_repo(repo):
return repo.branch()
def render_one(self, update_state, segment_info, status_colors=False, **kwargs):
if not update_state:
def render_one(self, branch, segment_info, status_colors=False, **kwargs):
if not branch:
return None
if status_colors:
self.started_repository_status = True
return [{
'contents': update_state,
'contents': branch,
'highlight_group': (['branch_dirty' if repository_status(segment_info=segment_info, **kwargs) else 'branch_clean']
if status_colors else []) + ['branch'],
'divider_highlight_group': 'branch:divider',