25f505f044d0

Fix a logic bug with python3 detection

Bug was introduced with previous commit.
[view raw] [browse files]
author Strahinja Markovic <strahinja.markovic@gmail.com>
date Mon, 29 Aug 2011 14:39:27 +0200
parents 6049a87d56c6
children 91190e67720f
branches/tags (none)
files autoload/gundo.vim

Changes

--- 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