diff options
author | Daniel Hahler <git@thequod.de> | 2015-05-02 21:58:54 +0200 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2015-06-09 10:29:45 +0300 |
commit | 3b0ec6599cfe6ce56711e89ddf8688416897afb7 (patch) | |
tree | 5feb1246671cfaa986b6583bcd8d7ab5e59e1606 /runtime/autoload | |
parent | 12f7229e7eef016baa8d9d959f78fc7f351b48fb (diff) | |
download | rneovim-3b0ec6599cfe6ce56711e89ddf8688416897afb7.tar.gz rneovim-3b0ec6599cfe6ce56711e89ddf8688416897afb7.tar.bz2 rneovim-3b0ec6599cfe6ce56711e89ddf8688416897afb7.zip |
provider/pythonx: Detect: only return valid versions
The `check` return value of `s:check_version` was not being used, and it
was returned always.
Diffstat (limited to 'runtime/autoload')
-rw-r--r-- | runtime/autoload/provider/pythonx.vim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim index 74a9933f09..0e221458b2 100644 --- a/runtime/autoload/provider/pythonx.vim +++ b/runtime/autoload/provider/pythonx.vim @@ -25,7 +25,9 @@ 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) - return [prog, err] + if check + return [prog, err] + endif endif endfor |