diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 554ae83..cfba5e6 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2983,7 +2983,7 @@ function! s:CommitCommand(line1, line2, range, count, bang, mods, reg, arg, args let exec_error = v:shell_error call delete(errorfile) else - if &autowrite + if &autowrite && !a:0 wall endif let [error_string, exec_error] = s:TempCmd(outfile, command)