Skip to content

Commit

Permalink
Fix a logic bug with python3 detection
Browse files Browse the repository at this point in the history
Bug was introduced with previous commit.
  • Loading branch information
Valloric committed Aug 29, 2011
1 parent 9271614 commit 4ef4d54
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions autoload/gundo.vim
Expand Up @@ -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
Expand Down

0 comments on commit 4ef4d54

Please sign in to comment.