mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Restore autowrite before :Gcommit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user