s:init_python: fix check for Python 2

Fixes https://github.com/davidhalter/jedi-vim/issues/841.
This commit is contained in:
Daniel Hahler
2018-07-08 04:31:55 +02:00
parent d3d9a91ae6
commit 67fd8c6572

View File

@@ -65,7 +65,7 @@ function! s:init_python() abort
if loader_version ==# 'auto' if loader_version ==# 'auto'
if has('python3') if has('python3')
let loader_version = 3 let loader_version = 3
elseif has('python2') elseif has('python')
let loader_version = 2 let loader_version = 2
else else
throw 'jedi-vim requires Vim with support for Python 2 or 3.' throw 'jedi-vim requires Vim with support for Python 2 or 3.'