commit aaf5b34366138dff810565446e640cb4b8476a7f (tree)
parent 05000b1872bb49d3f03f3055581f22de0fc53e1b
Author: Tim Pope <code@tpope.net>
Date: Mon, 9 May 2011 08:37:24 -0400
Fix garbling on :Gcommit when nothing is staged
Fixes #68.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -1621,7 +1621,7 @@ function! s:ReplaceCmd(cmd,...) abort
endif
endif
set noautowrite
- silent exe '!'.escape(prefix.a:cmd,'%#').' > '.tmp
+ call system(prefix.a:cmd.' > '.tmp)
finally
let &autowrite = aw
if exists('old_index')