Skip to content

Commit b514374

Browse files
committed
Fix pyfile call for paths with spaces
1 parent 3975ac8 commit b514374

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/gundo.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,10 +280,10 @@ endfunction"}}}
280280
function! s:GundoOpen()"{{{
281281
if !exists('g:gundo_py_loaded')
282282
if s:has_supported_python == 2 && g:gundo_prefer_python3
283-
exe 'py3file ' . s:plugin_path . '/gundo.py'
283+
exe 'py3file ' . escape(s:plugin_path, ' ') . '/gundo.py'
284284
python3 initPythonModule()
285285
else
286-
exe 'pyfile ' . s:plugin_path . '/gundo.py'
286+
exe 'pyfile ' . escape(s:plugin_path, ' ') . '/gundo.py'
287287
python initPythonModule()
288288
endif
289289

0 commit comments

Comments
 (0)