mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-13 00:00:15 +08:00
populate all modes with accent colors.
This commit is contained in:
1 parent
0a6b833e7c
commit
6442f01912
7 files changed
+26
-24
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user