vim9: Rewrite highlighter in Vim9 Script

This is the one script, that is usually causing the most slow down.
Converting it to Vim9 Script should keep vim responsive and the users
happy. Hopefully that works now.
This commit is contained in:
Christian Brabandt
2021-05-08 13:36:55 +02:00
parent 7e295c859f
commit a2f298ba8f
3 changed files with 695 additions and 315 deletions

View File

@@ -261,7 +261,7 @@ function! airline#check_mode(winnr)
let mode_string = join(mode)
if get(w:, 'airline_lastmode', '') != mode_string
call airline#highlighter#highlight_modified_inactive(string(context.bufnr))
call airline#highlighter#highlight_modified_inactive(context.bufnr)
call airline#highlighter#highlight(mode, string(context.bufnr))
call airline#util#doautocmd('AirlineModeChanged')
let w:airline_lastmode = mode_string