Skip to content
Browse files

Fix commit editing on Windows

Closes #120.
  • Loading branch information...
1 parent 1b6c0cb commit 5ceabc6e6a08f74686d15e72f935bf4059e0c0ef @tpope committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/fugitive.vim
View
2 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

0 comments on commit 5ceabc6

Please sign in to comment.
Something went wrong with that request. Please try again.