From 67fd8c657275797595fb08483347099357f6b9b4 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 8 Jul 2018 04:31:55 +0200 Subject: [PATCH] s:init_python: fix check for Python 2 Fixes https://github.com/davidhalter/jedi-vim/issues/841. --- autoload/jedi.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/jedi.vim b/autoload/jedi.vim index e5593b4..0c7ae16 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -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.'