mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 09:01:22 +08:00
improve builder to support blended sections.
This commit is contained in:
parent
59d6b72962
commit
b9483d8c15
|
@ -10,10 +10,14 @@ endfunction
|
|||
|
||||
function! s:prototype.add_section(group, contents)
|
||||
if self._curgroup != ''
|
||||
if self._curgroup == a:group
|
||||
let self._line .= self._side ? g:airline_left_alt_sep : g:airline_right_alt_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
|
||||
|
||||
let self._line .= '%#'.a:group.'#'.a:contents
|
||||
let self._curgroup = a:group
|
||||
|
|
Loading…
Reference in New Issue
Block a user