From 7a87615cbe1ec78678fd1023faeecea2c5e0b077 Mon Sep 17 00:00:00 2001 From: Trevor Stone Date: Sun, 2 May 2021 21:44:45 -0600 Subject: [PATCH] Fire AirlineToggledOff autocmd even if airline is disabled Fixes #2377. This regression was introduced in 2e9df43. --- autoload/airline/util.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/util.vim b/autoload/airline/util.vim index 22f01483..4ca5778d 100644 --- a/autoload/airline/util.vim +++ b/autoload/airline/util.vim @@ -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