mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-23 03:18:56 +08:00
Merge pull request #933 from chrisbra/fix_virtualenv
fix issue with virtualenv
This commit is contained in:
commit
fb77c3ac27
|
@ -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