From 27ed4c8eef7263cdada72cc7e6f74809b4b5d76a Mon Sep 17 00:00:00 2001 From: Claus Reinke Date: Sun, 12 Apr 2015 23:24:23 +0200 Subject: [PATCH] account for system call patches in vim --- autoload/vundle/installer.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index e9e84cd..e978bec 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -516,7 +516,11 @@ func! vundle#installer#system(cmd) abort if has("win32") || has("win64") " see cmd.exe docs (scroll down to remarks): " https://technet.microsoft.com/de-de/library/cc771320(v=ws.10).aspx - return system('"'.a:cmd.'"') + if v:version>703 || (has("patch443") && has("patch445")) + return system(a:cmd) + else + return system('"'.a:cmd.'"') + endif else return system(a:cmd) endif