From b514374da8475de151a8d85795263682ecf2585b Mon Sep 17 00:00:00 2001 From: David Fisher Date: Wed, 27 Aug 2014 13:13:45 -0700 Subject: [PATCH] Fix pyfile call for paths with spaces --- autoload/gundo.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/gundo.vim b/autoload/gundo.vim index 970413d..ce7ad11 100644 --- a/autoload/gundo.vim +++ b/autoload/gundo.vim @@ -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