mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +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 has('python3')
|
||||
let loader_version = 3
|
||||
elseif has('python2')
|
||||
elseif has('python')
|
||||
let loader_version = 2
|
||||
else
|
||||
throw 'jedi-vim requires Vim with support for Python 2 or 3.'
|
||||
|
||||
Reference in New Issue
Block a user