# HG changeset patch # User Strahinja Markovic # Date 1314621567 -7200 # Node ID 25f505f044d091876501137e8cc1ad51cf962763 # Parent 6049a87d56c6c756c7dee05c09e4c9294c0a50cc Fix a logic bug with python3 detection Bug was introduced with previous commit. diff -r 6049a87d56c6 -r 25f505f044d0 autoload/gundo.vim --- a/autoload/gundo.vim Mon Aug 29 14:13:01 2011 +0200 +++ b/autoload/gundo.vim Mon Aug 29 14:39:27 2011 +0200 @@ -47,12 +47,11 @@ let g:gundo_prefer_python3 = 0 endif"}}} -if has('python')"{{{ +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 -elseif g:gundo_prefer_python3 && has('python3') - let s:has_supported_python = 2 -else - let s:has_supported_python = 0 endif if !s:has_supported_python