Merge pull request #933 from chrisbra/fix_virtualenv

fix issue with virtualenv
This commit is contained in:
Christian Brabandt 2016-01-20 23:23:12 +01:00
commit fb77c3ac27

View File

@ -189,7 +189,7 @@ function! airline#extensions#load()
call airline#extensions#bufferline#init(s:ext)
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)
endif