fix issue with virtualenv

This commit is contained in:
Christian Brabandt 2016-01-20 23:21:20 +01:00
parent 17eff4f4b0
commit 2ebe79a0d0

View File

@ -189,7 +189,7 @@ function! airline#extensions#load()
call airline#extensions#bufferline#init(s:ext) call airline#extensions#bufferline#init(s:ext)
endif endif
if (get(g:, 'airline#extensions#virtualenv#enabled', 1) && exists(':VirtualEnvList')) if (get(g:, 'airline#extensions#virtualenv#enabled', 1) && (exists(':VirtualEnvList') || isdirectory($VIRTUAL_ENV)))
call airline#extensions#virtualenv#init(s:ext) call airline#extensions#virtualenv#init(s:ext)
endif endif