From 4ef4d54aa0d35b93862c8aaf8ba9f90427cb5ef4 Mon Sep 17 00:00:00 2001 From: Strahinja Markovic Date: Mon, 29 Aug 2011 14:39:27 +0200 Subject: [PATCH] Fix a logic bug with python3 detection Bug was introduced with previous commit. --- autoload/gundo.vim | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/autoload/gundo.vim b/autoload/gundo.vim index 41eac79..70f55f7 100644 --- a/autoload/gundo.vim +++ b/autoload/gundo.vim @@ -47,12 +47,11 @@ if !exists("g:gundo_prefer_python3")"{{{ let g:gundo_prefer_python3 = 0 endif"}}} -if has('python')"{{{ - let s:has_supported_python = 1 -elseif g:gundo_prefer_python3 && has('python3') +let s:has_supported_python = 0 +if g:gundo_prefer_python3 && has('python3')"{{{ let s:has_supported_python = 2 -else - let s:has_supported_python = 0 +elseif has('python')" + let s:has_supported_python = 1 endif if !s:has_supported_python