populate all modes with accent colors.

This commit is contained in:
Bailey Ling
2013-09-17 22:45:12 -04:00
parent 0a6b833e7c
commit 6442f01912
7 changed files with 26 additions and 24 deletions

View File

@@ -23,7 +23,11 @@ function! s:prototype.add_section(group, contents)
let self._line .= '%#'.a:group.'#'
endif
let accent = matchstr(a:contents, 'airline_accent_\zs[^#]*\ze')
let contents = substitute(a:contents, 'airline_accent', a:group, 'g')
if contents != a:contents
call airline#highlighter#add_accent(a:group, accent)
endif
let self._line .= contents
let self._curgroup = a:group
endfunction