Merge pull request #1157 from cenk/padding

do not add padding to section name if empty
This commit is contained in:
Christian Brabandt 2016-05-10 22:58:53 +02:00
commit 811e51575c
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,10 @@ function! s:prototype.split(...)
endfunction endfunction
function! s:prototype.add_section_spaced(group, contents) function! s:prototype.add_section_spaced(group, contents)
call self.add_section(a:group, (g:airline_symbols.space).a:contents.(g:airline_symbols.space)) if a:contents
let a:contents = (g:airline_symbols.space).a:contents.(g:airline_symbols.space)
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)