Fire AirlineToggledOff autocmd even if airline is disabled
Fixes #2377. This regression was introduced in 2e9df43
.
This commit is contained in:
parent
2e9df43962
commit
7a87615cbe
|
@ -174,7 +174,7 @@ function! airline#util#has_custom_scm()
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! airline#util#doautocmd(event)
|
function! airline#util#doautocmd(event)
|
||||||
if !exists('#airline')
|
if !exists('#airline') && a:event !=? 'AirlineToggledOff'
|
||||||
" airline disabled
|
" airline disabled
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue