Merge pull request #1161 from chrisbra/1157

fix adding space padding to section caused by PR1157
This commit is contained in:
Christian Brabandt 2016-05-12 21:42:37 +02:00
commit 4ca34804b2

View File

@ -8,10 +8,8 @@ function! s:prototype.split(...)
endfunction endfunction
function! s:prototype.add_section_spaced(group, contents) function! s:prototype.add_section_spaced(group, contents)
if a:contents let spc = empty(a:contents) ? '' : g:airline_symbols.space
let a:contents = (g:airline_symbols.space).a:contents.(g:airline_symbols.space) call self.add_section(a:group, spc.a:contents.spc)
endif
call self.add_section(a:group, a:contents)
endfunction endfunction
function! s:prototype.add_section(group, contents) function! s:prototype.add_section(group, contents)