From 5ceabc6e6a08f74686d15e72f935bf4059e0c0ef Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 21 Apr 2012 09:59:40 -0400 Subject: [PATCH] Fix commit editing on Windows Closes #120. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index aa087d9..34a1e23 100644 --- 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