mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 11:34:51 +08:00
s:init_python: fix check for Python 2
Fixes https://github.com/davidhalter/jedi-vim/issues/841.
This commit is contained in:
@@ -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.'
|
||||||
|
|||||||
Reference in New Issue
Block a user