Prefer Python 3 over Python 2 in the fallback

When falling back to Python, check for Python 3 presence first.
This avoids pulling Python 2 at all when Python 3 is available.
This commit is contained in:
Ilya Tumaykin authored and Junegunn Choi committed 2026-11-07 20:07:03 +09:00
1 parent edcda24483
commit 7fbf4b4464
1 file changed
+1 -1
+1 -1
View File
@@ -1196,7 +1196,7 @@ function! s:update_impl(pull, force, args) abort
endif
let use_job = s:nvim || s:vim8
let python = !use_job && (has('python') || has('python3'))
let python = !use_job && (has('python3') || has('python'))
let ruby = !use_job && (v:version >= 703 || v:version == 702 && has('patch374')) && !(s:is_win && has('gui_running')) && threads > 1 && has('ruby') && s:check_ruby()
let s:update = {