aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsaadparwaiz1 <73385353+saadparwaiz1@users.noreply.github.com>2020-11-24 08:39:11 +0000
committerGitHub <noreply@github.com>2020-11-24 09:39:11 +0100
commit60158dfb818cbc8132da31bdf3ab77def9bf070e (patch)
treec9a9a2bac7e7d730d8b5c8701a4ebd0e56bd5594
parentdd876a15489beea14cd35417ca5147cb5316e9ce (diff)
downloadrneovim-60158dfb818cbc8132da31bdf3ab77def9bf070e.tar.gz
rneovim-60158dfb818cbc8132da31bdf3ab77def9bf070e.tar.bz2
rneovim-60158dfb818cbc8132da31bdf3ab77def9bf070e.zip
checkhealth: support virtual env dir with spaces
-rw-r--r--runtime/autoload/health/provider.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/autoload/health/provider.vim b/runtime/autoload/health/provider.vim
index 94fd7cf505..112dd4354f 100644
--- a/runtime/autoload/health/provider.vim
+++ b/runtime/autoload/health/provider.vim
@@ -487,7 +487,7 @@ endfunction
" Resolves Python executable path by invoking and checking `sys.executable`.
function! s:python_exepath(invocation) abort
- return s:normalize_path(system(a:invocation
+ return s:normalize_path(system(fnameescape(a:invocation)
\ . ' -c "import sys; sys.stdout.write(sys.executable)"'))
endfunction