mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +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
@@ -2830,9 +2830,9 @@ void ex_options(exarg_T *eap)
|
||||
void init_pyxversion(void)
|
||||
{
|
||||
if (p_pyx == 0) {
|
||||
if (!eval_has_provider("python3")) {
|
||||
if (eval_has_provider("python3")) {
|
||||
p_pyx = 3;
|
||||
} else if (!eval_has_provider("python")) {
|
||||
} else if (eval_has_provider("python")) {
|
||||
p_pyx = 2;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user