Check that 'statusline' option is correct

statusline of quickfix window will be reset in the ftplugin of
$VIMRUNTIME, therefore check that airline is still active

fixes #1447
This commit is contained in:
Christian Brabandt 2017-03-17 12:01:56 +01:00
parent b57022bfc2
commit 3a23eeac42
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ function! s:on_window_changed()
" different autocommands.
let l:key = [bufnr('%'), winnr(), winnr('$'), tabpagenr()]
if get(g:, 'airline_last_window_changed', []) == l:key
\ && &stl is# '%!airline#statusline('.winnr().')'
return
endif
let g:airline_last_window_changed = l:key