Fix commit editing on Windows

Closes #120.
This commit is contained in:
Tim Pope 2012-04-21 09:59:40 -04:00
parent 1b6c0cbfb6
commit 5ceabc6e6a

View File

@ -1901,7 +1901,7 @@ function! s:ReplaceCmd(cmd,...) abort
endif endif
endif endif
if &shell =~# 'cmd' if &shell =~# 'cmd'
call system('cmd /c "'.prefix.a:cmd.' > '.tmp.'"') call system('cmd /c "'.prefix.s:gsub(a:cmd,'[<>]', '^^^&').' > '.tmp.'"')
else else
call system(' ('.prefix.a:cmd.' > '.tmp.') ') call system(' ('.prefix.a:cmd.' > '.tmp.') ')
endif endif