Some small changes in .segments.vim

This commit is contained in:
ZyX 2013-03-19 00:29:41 +04:00
parent fd6c1f1e13
commit 1dc039a3b0
1 changed files with 3 additions and 2 deletions

View File

@ -301,6 +301,7 @@ def modified_buffers(text='+ ', join_str=','):
class KwWindowThreadedSegment(KwThreadedSegment):
def set_state(self, **kwargs):
kwargs = kwargs.copy()
for window in vim.windows:
buffer = window.buffer
kwargs['segment_info'] = {'bufnr': buffer.number, 'buffer': buffer}
@ -372,9 +373,9 @@ class BranchSegment(RepositorySegment):
'divider_highlight_group': 'branch:divider',
}]
def startup(self, **kwargs):
def startup(self, status_colors=False, **kwargs):
super(BranchSegment, self).startup()
if kwargs.get('status_colors', False):
if status_colors:
self.started_repository_status = True
repository_status.startup()