mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-10-09 06:45:46 +08:00
improve performance with accent cache (#326).
This commit is contained in:
1 parent
de1d1e365e
commit
99b7cdf334
3 files changed
+11
-1
No files matched your search
@@ -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