Restore autowrite before :Gcommit

This commit is contained in:
Tim Pope
2019-07-01 05:52:02 -04:00
parent 3d252dac21
commit 14649fb858

View File

@@ -2692,6 +2692,9 @@ function! s:CommitCommand(line1, line2, range, count, bang, mods, reg, arg, args
let errors = readfile(errorfile)
call delete(errorfile)
else
if &autowrite
wall
endif
let errors = split(s:TempCmd(outfile, command), "\n")
endif
let error = v:shell_error