Skip to content

Commit

Permalink
Fix pyfile call for paths with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ddfisher committed Aug 27, 2014
1 parent 3975ac8 commit b514374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/gundo.vim
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,10 @@ endfunction"}}}
function! s:GundoOpen()"{{{
if !exists('g:gundo_py_loaded')
if s:has_supported_python == 2 && g:gundo_prefer_python3
exe 'py3file ' . s:plugin_path . '/gundo.py'
exe 'py3file ' . escape(s:plugin_path, ' ') . '/gundo.py'
python3 initPythonModule()
else
exe 'pyfile ' . s:plugin_path . '/gundo.py'
exe 'pyfile ' . escape(s:plugin_path, ' ') . '/gundo.py'
python initPythonModule()
endif

Expand Down

0 comments on commit b514374

Please sign in to comment.