mirror of
https://github.com/vim-airline/vim-airline-themes
synced 2024-12-14 01:54:37 +00:00
fix issue with virtualenv
This commit is contained in:
parent
17eff4f4b0
commit
2ebe79a0d0
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user