mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 13:23:52 -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)
|
let errors = readfile(errorfile)
|
||||||
call delete(errorfile)
|
call delete(errorfile)
|
||||||
else
|
else
|
||||||
|
if &autowrite
|
||||||
|
wall
|
||||||
|
endif
|
||||||
let errors = split(s:TempCmd(outfile, command), "\n")
|
let errors = split(s:TempCmd(outfile, command), "\n")
|
||||||
endif
|
endif
|
||||||
let error = v:shell_error
|
let error = v:shell_error
|
||||||
|
|||||||
Reference in New Issue
Block a user