Merge pull request #2059 from languitar/patch-1

Always obey the poetv#enabled setting
This commit is contained in:
Christian Brabandt 2020-02-17 13:58:31 +01:00 committed by GitHub
commit 3fdfdc9963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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