From 50647ec971c7ca5369770f32656ecbd1c77db38f Mon Sep 17 00:00:00 2001 From: Chronial Date: Wed, 10 Apr 2013 13:54:47 +0100 Subject: [PATCH] Add support for cygwin shells on Windows --- autoload/vundle/installer.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 8386aae..c464f2a 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -260,7 +260,7 @@ func! g:shellesc(cmd) abort endf func! g:shellesc_cd(cmd) abort - if (has('win32') || has('win64')) + if ((has('win32') || has('win64')) && match(&shellcmdflag, "/") != -1) let cmd = substitute(a:cmd, '^cd ','cd /d ','') " add /d switch to change drives let cmd = g:shellesc(cmd) return cmd