mirror of
https://github.com/junegunn/vim-plug.git
synced 2026-11-13 16:08:01 +00:00
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:
1 parent
edcda24483
commit
7fbf4b4464
1 file changed
+1
-1
@@ -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 = {
|
||||
|
||||
Reference in new issue
Block a user