mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-02-23 01:58:26 +08:00
correctly inject the accent highlight groups.
This commit is contained in:
@@ -23,7 +23,8 @@ function! s:prototype.add_section(group, contents)
|
||||
let self._line .= '%#'.a:group.'#'
|
||||
endif
|
||||
|
||||
let self._line .= a:contents
|
||||
let contents = substitute(a:contents, 'airline_accent', a:group, 'g')
|
||||
let self._line .= contents
|
||||
let self._curgroup = a:group
|
||||
endfunction
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ function! s:create(parts, append)
|
||||
let part = airline#parts#get(a:parts[idx])
|
||||
|
||||
let val = ''
|
||||
if exists('part.highlight')
|
||||
let val .= '%#'.(part.highlight).'#'
|
||||
if exists('part.accent')
|
||||
let val .= '%#airline_accent_'.(part.accent).'#'
|
||||
endif
|
||||
|
||||
if exists('part.function')
|
||||
|
||||
Reference in New Issue
Block a user