mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +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:
@@ -174,6 +174,10 @@ function! airline#util#has_custom_scm()
|
||||
endfunction
|
||||
|
||||
function! airline#util#doautocmd(event)
|
||||
if !exists('#airline')
|
||||
" airline disabled
|
||||
return
|
||||
endif
|
||||
exe printf("silent doautocmd %s User %s", s:nomodeline, a:event)
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in New Issue
Block a user