Permalink
Browse files

Fix Windows escaping on latest 7.3 patches

  • Loading branch information...
1 parent 5ceabc6 commit 765c921e1f0281963009b3e06a94227a8c0a2408 @daisuzu daisuzu committed with May 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 plugin/fugitive.vim
View
@@ -1901,7 +1901,8 @@ function! s:ReplaceCmd(cmd,...) abort
endif
endif
if &shell =~# 'cmd'
- call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', '^^^&').' > '.tmp.'"')
+ let cmd_escape_char = &shellxquote == '(' ? '^' : '^^^'
+ call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', cmd_escape_char.'&').' > '.tmp.'"')
else
call system(' ('.prefix.a:cmd.' > '.tmp.') ')
endif

0 comments on commit 765c921

Please sign in to comment.