mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2026-02-28 07:32:18 +08:00
improve performance with accent cache (#326).
This commit is contained in:
@@ -6,6 +6,7 @@ let s:spc = g:airline_symbols.space
|
||||
|
||||
function! s:wrap_accent(part, value)
|
||||
if exists('a:part.accent')
|
||||
call airline#highlighter#add_accent(a:part.accent)
|
||||
return '%#__accent_'.(a:part.accent).'#'.a:value.'%#__restore__#'
|
||||
endif
|
||||
return a:value
|
||||
|
||||
Reference in New Issue
Block a user