commit 5ceabc6e6a08f74686d15e72f935bf4059e0c0ef (tree) parent 1b6c0cbfb66dd6827c4902bf340d3e53e710097a Author: Tim Pope <code@tpope.net> Date: Sat, 21 Apr 2012 09:59:40 -0400 Fix commit editing on Windows Closes #120. Diffstat:
| M | plugin/fugitive.vim | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -1901,7 +1901,7 @@ function! s:ReplaceCmd(cmd,...) abort endif endif if &shell =~# 'cmd' - call system('cmd /c "'.prefix.a:cmd.' > '.tmp.'"') + call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', '^^^&').' > '.tmp.'"') else call system(' ('.prefix.a:cmd.' > '.tmp.') ') endif