refactor ctrlp statusline to use builder. resolves #291.

This commit is contained in:
Bailey Ling
2013-10-01 21:23:17 -04:00
parent 6fc15ff321
commit 6c66ad5dfc
2 changed files with 22 additions and 15 deletions

View File

@@ -8,6 +8,10 @@ function! s:prototype.split(...)
let self._line .= '%#'.self._curgroup.'#'.(a:0 ? a:1 : '%=')
endfunction
function! s:prototype.add_section_spaced(group, contents)
call self.add_section(a:group, (g:airline_symbols.space).a:contents.(g:airline_symbols.space))
endfunction
function! s:prototype.add_section(group, contents)
if self._curgroup != ''
if self._curgroup == a:group