Fire AirlineToggledOff autocmd even if airline is disabled

Fixes #2377.  This regression was introduced in 2e9df43.
This commit is contained in:
Trevor Stone committed 2021-05-02 21:44:45 -06:00
1 parent 2e9df43962
commit 7a87615cbe
1 file changed
+1 -1
+1 -1
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