Merge pull request #1256 from chrisbra/1253

do not cache status of statusline per tabpage
This commit is contained in:
Christian Brabandt 2016-09-15 16:42:06 +02:00 committed by GitHub
commit 7a720bbbd7

View File

@ -39,12 +39,12 @@ function! s:on_window_changed()
endif
" Handle each window only once, since we might come here several times for
" different autocommands.
let l:key = [bufnr('%'), winnr(), winnr('$')]
if get(t:, 'airline_last_window_changed', []) == l:key
let l:key = [bufnr('%'), winnr(), winnr('$'), tabpagenr()]
if get(g:, 'airline_last_window_changed', []) == l:key
\ && &stl is# '%!airline#statusline('.winnr().')'
return
endif
let t:airline_last_window_changed = l:key
let g:airline_last_window_changed = l:key
call s:init()
call airline#update_statusline()
endfunction