Fix a logic bug with python3 detection

Bug was introduced with previous commit.
This commit is contained in:
Strahinja Markovic 2011-08-29 14:39:27 +02:00
parent 9271614008
commit 4ef4d54aa0

View File

@ -47,12 +47,11 @@ if !exists("g:gundo_prefer_python3")"{{{
let g:gundo_prefer_python3 = 0 let g:gundo_prefer_python3 = 0
endif"}}} endif"}}}
if has('python')"{{{
let s:has_supported_python = 1
elseif g:gundo_prefer_python3 && has('python3')
let s:has_supported_python = 2
else
let s:has_supported_python = 0 let s:has_supported_python = 0
if g:gundo_prefer_python3 && has('python3')"{{{
let s:has_supported_python = 2
elseif has('python')"
let s:has_supported_python = 1
endif endif
if !s:has_supported_python if !s:has_supported_python