From 2ebe79a0d083ca0f7327f823a71bb11d3567f036 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 20 Jan 2016 23:21:20 +0100 Subject: [PATCH] fix issue with virtualenv --- autoload/airline/extensions.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index be922a1..e87d4c9 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -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