mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-24 08:54:58 +08:00
Also cache filetype
The cache currently prevents e.g. that the wordcount() extensions kicks in the first time you open a help window. Therefore take the filetype into consideration as well.
This commit is contained in:
parent
9d89375b8f
commit
2ea22c1aaa
|
@ -41,7 +41,7 @@ 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('$'), tabpagenr()]
|
||||
let l:key = [bufnr('%'), winnr(), winnr('$'), tabpagenr(), &ft]
|
||||
if get(g:, 'airline_last_window_changed', []) == l:key
|
||||
\ && &stl is# '%!airline#statusline('.winnr().')'
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue
Block a user