improve builder to support blended sections.
This commit is contained in:
parent
59d6b72962
commit
b9483d8c15
@ -10,9 +10,13 @@ endfunction
|
|||||||
|
|
||||||
function! s:prototype.add_section(group, contents)
|
function! s:prototype.add_section(group, contents)
|
||||||
if self._curgroup != ''
|
if self._curgroup != ''
|
||||||
call airline#highlighter#add_separator(self._curgroup, a:group, self._side)
|
if self._curgroup == a:group
|
||||||
let self._line .= '%#'.self._curgroup.'_to_'.a:group.'#'
|
let self._line .= self._side ? g:airline_left_alt_sep : g:airline_right_alt_sep
|
||||||
let self._line .= self._side ? g:airline_left_sep : g:airline_right_sep
|
else
|
||||||
|
call airline#highlighter#add_separator(self._curgroup, a:group, self._side)
|
||||||
|
let self._line .= '%#'.self._curgroup.'_to_'.a:group.'#'
|
||||||
|
let self._line .= self._side ? g:airline_left_sep : g:airline_right_sep
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let self._line .= '%#'.a:group.'#'.a:contents
|
let self._line .= '%#'.a:group.'#'.a:contents
|
||||||
|
Loading…
Reference in New Issue
Block a user