mirror of
https://github.com/neovim/neovim.git
synced 2025-12-06 14:42:35 +00:00
provider/pythonx: Detect: only return valid versions
The `check` return value of `s:check_version` was not being used, and it was returned always.
This commit is contained in:
committed by
Florian Walch
parent
12f7229e7e
commit
3b0ec6599c
@@ -25,8 +25,10 @@ function! provider#pythonx#Detect(ver) abort
|
||||
let [check, err, ver] = s:check_interpreter(prog, a:ver, skip)
|
||||
if check
|
||||
let [check, err] = s:check_version(prog, ver, skip)
|
||||
if check
|
||||
return [prog, err]
|
||||
endif
|
||||
endif
|
||||
endfor
|
||||
|
||||
" No Python interpreter
|
||||
|
||||
Reference in New Issue
Block a user