Fix garbling on :Gcommit when nothing is staged

Fixes #68.
This commit is contained in:
Tim Pope 2011-05-09 08:37:24 -04:00
parent 05000b1872
commit aaf5b34366

View File

@ -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')