mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-24 04:41:27 +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:
@@ -128,6 +128,10 @@ function! airline#extensions#ale#init(ext)
|
||||
endfunction
|
||||
|
||||
function! s:ale_refresh()
|
||||
if !exists('#airline')
|
||||
" airline disabled
|
||||
return
|
||||
endif
|
||||
if get(g:, 'airline_skip_empty_sections', 0)
|
||||
exe ':AirlineRefresh!'
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user