Merge pull request #1242 from JulienPivard/correctionRefresh

`:AirlineRefresh` not work correctly
This commit is contained in:
Christian Brabandt 2016-09-05 19:31:54 +02:00 committed by GitHub
commit f6155d11fb
1 changed files with 5 additions and 2 deletions

View File

@ -106,8 +106,11 @@ function! airline#highlighter#load_theme()
for winnr in filter(range(1, winnr('$')), 'v:val != winnr()')
call airline#highlighter#highlight_modified_inactive(winbufnr(winnr))
endfor
call airline#highlighter#highlight(['inactive'])
call airline#highlighter#highlight(['normal'])
if getbufvar( bufnr('%'), '&modified' )
call airline#highlighter#highlight(['normal', 'modified'])
else
call airline#highlighter#highlight(['normal'])
endif
endfunction
function! airline#highlighter#add_separator(from, to, inverse)