checkhealth: ignore 'wildignore' when seeking executables (#14495)

Certain values of 'wildignore', .e.g `*/node_modules/**`, would make the
provider checks not find the right executables.

Fixes https://github.com/neovim/neovim/issues/14388
This commit is contained in:
Marco Hinz
2021-05-07 11:07:07 +02:00
committed by GitHub
parent 8c9f0f1da1
commit 17434b88b4
3 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ function! provider#pythonx#Require(host) abort
endfunction
function! s:get_python_executable_from_host_var(major_version) abort
return expand(get(g:, 'python'.(a:major_version == 3 ? '3' : '').'_host_prog', ''))
return expand(get(g:, 'python'.(a:major_version == 3 ? '3' : '').'_host_prog', ''), v:true)
endfunction
function! s:get_python_candidates(major_version) abort
@@ -44,7 +44,7 @@ function! provider#pythonx#DetectByModule(module, major_version) abort
let python_exe = s:get_python_executable_from_host_var(a:major_version)
if !empty(python_exe)
return [exepath(expand(python_exe)), '']
return [exepath(expand(python_exe, v:true)), '']
endif
let candidates = s:get_python_candidates(a:major_version)