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
|
endif
|
||||||
" Handle each window only once, since we might come here several times for
|
" Handle each window only once, since we might come here several times for
|
||||||
" different autocommands.
|
" different autocommands.
|
||||||
let l:key = [bufnr('%'), winnr(), winnr('$')]
|
let l:key = [bufnr('%'), winnr(), winnr('$'), tabpagenr()]
|
||||||
if get(t:, 'airline_last_window_changed', []) == l:key
|
if get(g:, 'airline_last_window_changed', []) == l:key
|
||||||
\ && &stl is# '%!airline#statusline('.winnr().')'
|
\ && &stl is# '%!airline#statusline('.winnr().')'
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
let t:airline_last_window_changed = l:key
|
let g:airline_last_window_changed = l:key
|
||||||
call s:init()
|
call s:init()
|
||||||
call airline#update_statusline()
|
call airline#update_statusline()
|
||||||
endfunction
|
endfunction
|
||||||
|
Loading…
x
Reference in New Issue
Block a user