mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-21 03:11:13 +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:
@@ -107,6 +107,10 @@ augroup airline#extensions#cursormode
|
||||
augroup END
|
||||
|
||||
function! airline#extensions#cursormode#activate()
|
||||
if !exists('#airline')
|
||||
" airline disabled
|
||||
return
|
||||
endif
|
||||
let s:color_map = s:get_color_map()
|
||||
call airline#extensions#cursormode#set()
|
||||
endfunction
|
||||
|
||||
Reference in New Issue
Block a user