provider/pythonx: test python3/2 first, do not test python3.2

python3/python2 will typically point at the default / most recent
interpreter.
This commit is contained in:
Daniel Hahler 2015-05-02 21:14:41 +02:00 committed by Florian Walch
parent 6fa10ab9cb
commit 12f7229e7e

View File

@ -18,8 +18,8 @@ function! provider#pythonx#Detect(ver) abort
endif
let detect_versions = (a:ver == 2) ?
\ ['2.7', '2.6', '2', '']
\ : ['3.5', '3.4', '3.3', '3.2', '3', '']
\ ['2', '2.7', '2.6', '']
\ : ['3', '3.5', '3.4', '3.3', '']
for prog in map(detect_versions, "'python' . v:val")
let [check, err, ver] = s:check_interpreter(prog, a:ver, skip)