Always obey the poetv#enabled setting

Do not silently enable an extension even though the `enabled` setting is false.

This would resolve #2058
This commit is contained in:
Johannes Wienke 2020-02-01 18:06:28 +01:00
parent f659a98d50
commit 5c1f3b426b
1 changed files with 1 additions and 1 deletions

View File

@ -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