mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-22 15:23:55 +08:00
Merge pull request #1256 from chrisbra/1253
do not cache status of statusline per tabpage
This commit is contained in:
commit
7a720bbbd7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user