From 5c1f3b426b7d1a0412bd3b944afde438b5a3294e Mon Sep 17 00:00:00 2001 From: Johannes Wienke Date: Sat, 1 Feb 2020 18:06:28 +0100 Subject: [PATCH] Always obey the poetv#enabled setting Do not silently enable an extension even though the `enabled` setting is false. This would resolve #2058 --- autoload/airline/extensions.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index 50c1c161..0e406547 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -290,7 +290,7 @@ function! airline#extensions#load() elseif (get(g:, 'airline#extensions#virtualenv#enabled', 1) && (exists(':VirtualEnvList'))) call airline#extensions#virtualenv#init(s:ext) call add(s:loaded_ext, 'virtualenv') - elseif (isdirectory($VIRTUAL_ENV)) + elseif (get(g:, 'airline#extensions#poetv#enabled', 1) && (isdirectory($VIRTUAL_ENV))) call airline#extensions#poetv#init(s:ext) call add(s:loaded_ext, 'poetv') endif