fix arrows being out of sync.
This commit is contained in:
parent
bcba04e20c
commit
38b8520a37
|
@ -31,10 +31,8 @@ endfunction
|
||||||
function! airline#highlighter#new()
|
function! airline#highlighter#new()
|
||||||
let highlighter = {}
|
let highlighter = {}
|
||||||
let highlighter._separators = {}
|
let highlighter._separators = {}
|
||||||
let highlighter._mode_init = {}
|
|
||||||
|
|
||||||
function! highlighter.load_theme()
|
function! highlighter.load_theme()
|
||||||
let self._mode_init = {}
|
|
||||||
call self.highlight(['inactive'])
|
call self.highlight(['inactive'])
|
||||||
call self.highlight(['normal'])
|
call self.highlight(['normal'])
|
||||||
endfunction
|
endfunction
|
||||||
|
@ -54,13 +52,10 @@ function! airline#highlighter#new()
|
||||||
call airline#highlighter#exec(kvp[0].suffix, kvp[1])
|
call airline#highlighter#exec(kvp[0].suffix, kvp[1])
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
" initialize separator colors for this mode if necessary
|
" TODO: optimize this
|
||||||
if !has_key(self._mode_init, mode)
|
for sep in items(self._separators)
|
||||||
let self._mode_init[mode] = 1
|
call <sid>exec_separator(dict, sep[1][0].suffix, sep[1][1].suffix, sep[1][2])
|
||||||
for sep in items(self._separators)
|
endfor
|
||||||
call <sid>exec_separator(dict, sep[1][0].suffix, sep[1][1].suffix, sep[1][2])
|
|
||||||
endfor
|
|
||||||
endif
|
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
endfunction
|
endfunction
|
||||||
|
|
Loading…
Reference in New Issue