fix performance regression

This commit is contained in:
Christian Brabandt
2016-02-07 21:10:37 +01:00
parent 3d148154e1
commit 7efa5067ef
2 changed files with 2 additions and 3 deletions

View File

@@ -179,12 +179,10 @@ function! airline#check_mode(winnr)
endif
let mode_string = join(l:mode)
if get(w:, 'airline_lastmode', '') != mode_string ||
\ get(s:, 'airline_lastmode', []) != l:mode
if get(w:, 'airline_lastmode', '') != mode_string
call airline#highlighter#highlight_modified_inactive(context.bufnr)
call airline#highlighter#highlight(l:mode)
let w:airline_lastmode = mode_string
let s:airline_lastmode = l:mode
endif
return ''