mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
pyxversion: fix logic error #10759
Do not incorrectly prefer python2 if python3 is working. fixes #10758
This commit is contained in:

committed by
Justin M. Keyes

parent
ebcb9adcc4
commit
48b43352b0
@@ -13640,10 +13640,6 @@ static void f_pumvisible(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
*/
|
||||
static void f_pyeval(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
{
|
||||
if (p_pyx == 0) {
|
||||
p_pyx = 2;
|
||||
}
|
||||
|
||||
script_host_eval("python", argvars, rettv);
|
||||
}
|
||||
|
||||
@@ -13652,10 +13648,6 @@ static void f_pyeval(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
*/
|
||||
static void f_py3eval(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
{
|
||||
if (p_pyx == 0) {
|
||||
p_pyx = 3;
|
||||
}
|
||||
|
||||
script_host_eval("python3", argvars, rettv);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user