Merge pull request #2378 from flwyd/autocmd-dont-skip-toggle-off
Fire AirlineToggledOff autocmd even if airline is disabled
This commit is contained in:
commit
2d650d2e83
|
@ -174,7 +174,7 @@ function! airline#util#has_custom_scm()
|
|||
endfunction
|
||||
|
||||
function! airline#util#doautocmd(event)
|
||||
if !exists('#airline')
|
||||
if !exists('#airline') && a:event !=? 'AirlineToggledOff'
|
||||
" airline disabled
|
||||
return
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue