Fire AirlineToggledOff autocmd even if airline is disabled

Fixes #2377.  This regression was introduced in 2e9df43.
This commit is contained in:
Trevor Stone 2021-05-02 21:44:45 -06:00
parent 2e9df43962
commit 7a87615cbe
1 changed files with 1 additions and 1 deletions

View File

@ -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