From 14649fb858f2145ff15ff38cca1e7f51ffbbbfba Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 1 Jul 2019 05:52:02 -0400 Subject: [PATCH] Restore autowrite before :Gcommit --- autoload/fugitive.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 39725c6..f6ceff8 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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