Try to avoid excessive redraws.

Most of them seem to be caused by using :hi statements, although the
highlighting group to be created is exactly the same. Therefore, get the
info from actual definition and only execute :hi when the new group is
actually different.

Also try to avoid to generate :hi statements when the popupmen is
visible. This causes flickers.
This commit is contained in:
Christian Brabandt
2016-01-28 17:27:17 +01:00
parent 0ced03ebf3
commit af3f209d7a
2 changed files with 32 additions and 9 deletions

View File

@@ -59,6 +59,9 @@ function! s:update_tabline()
endfunction
function! airline#extensions#tabline#load_theme(palette)
if pumvisible()
return
endif
let colors = get(a:palette, 'tabline', {})
let l:tab = get(colors, 'airline_tab', a:palette.normal.airline_b)
let l:tabsel = get(colors, 'airline_tabsel', a:palette.normal.airline_a)