mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-07 12:44:26 +08:00
autocommands: check for existence of airline highlight group
Several extensions trigger custom actions. Make sure, those actions are only performed, if airline is actually active and not temporarily disabled using e.g. :AirlineToggle
This commit is contained in:
@@ -230,7 +230,7 @@ function! s:airline_refresh(...)
|
||||
endfunction
|
||||
|
||||
function! s:FocusGainedHandler(timer)
|
||||
if exists("s:timer") && a:timer == s:timer
|
||||
if exists("s:timer") && a:timer == s:timer && exists('#airline')
|
||||
augroup airline
|
||||
au FocusGained * call s:on_focus_gained()
|
||||
augroup END
|
||||
|
||||
Reference in New Issue
Block a user