diff options
author | Daniel Hahler <git@thequod.de> | 2015-05-02 20:56:09 +0200 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2015-06-09 10:29:45 +0300 |
commit | 905f34cf30fdebdf430c3be72429193fd855cc7f (patch) | |
tree | ab16082ae3c8f8da6f99111725d180dd154e6880 | |
parent | 75db0c37a78c1fed601120f6780cd42f0909f2d8 (diff) | |
download | rneovim-905f34cf30fdebdf430c3be72429193fd855cc7f.tar.gz rneovim-905f34cf30fdebdf430c3be72429193fd855cc7f.tar.bz2 rneovim-905f34cf30fdebdf430c3be72429193fd855cc7f.zip |
provider/pythonx: fix grammar with error
-rw-r--r-- | runtime/autoload/provider/pythonx.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/runtime/autoload/provider/pythonx.vim b/runtime/autoload/provider/pythonx.vim index 1fe6c066ab..e390692d4d 100644 --- a/runtime/autoload/provider/pythonx.vim +++ b/runtime/autoload/provider/pythonx.vim @@ -55,7 +55,7 @@ function! s:check_interpreter(prog, ver, skip) abort return [1, '', ''] endif - " Load neovim module check + " Try to load neovim module, and output Python version. let ver = system(a:prog . ' -c ' . \ '''import sys; sys.stdout.write(str(sys.version_info[0]) + '. \ '"." + str(sys.version_info[1])); '''. @@ -63,6 +63,9 @@ function! s:check_interpreter(prog, ver, skip) abort \ '''import pkgutil; exit(pkgutil.get_loader("neovim") is None)''': \ '''import importlib; exit(importlib.find_loader("neovim") is None)''') \ ) - return [!v:shell_error, 'Python'.a:ver.' interpreter have not neovim module.', ver] + if v:shell_error + return [0, 'Python'.a:ver.' interpreter ('.a:prog.') has no neovim module installed.', ver] + endif + return [1, '', ver] endfunction |