Merge pull request #1157 from cenk/padding
do not add padding to section name if empty
This commit is contained in:
commit
811e51575c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user