7ec49c438c41

Fix pyfile call for paths with spaces
[view raw] [browse files]
author David Fisher <ddfisher@dropbox.com>
date Wed, 27 Aug 2014 13:13:45 -0700
parents eb9fc8676b89
children 80be9ec7656d
branches/tags (none)
files autoload/gundo.vim

Changes

--- a/autoload/gundo.vim	Wed Jul 10 20:37:26 2013 -0400
+++ b/autoload/gundo.vim	Wed Aug 27 13:13:45 2014 -0700
@@ -280,10 +280,10 @@
 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