Merge pull request #2378 from flwyd/autocmd-dont-skip-toggle-off

Fire AirlineToggledOff autocmd even if airline is disabled
This commit is contained in:
Christian Brabandt 2021-05-03 08:04:35 +02:00 committed by GitHub
commit 2d650d2e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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