Ensure no autocommands are run when writing temporary files.

There is no evidence that autocommands were being run but this seems
like a good change to make anyway.
This commit is contained in:
Andy Stewart
2016-01-15 11:12:26 +00:00
parent a871d857d0
commit ff4f592c58

View File

@@ -81,7 +81,7 @@ function! gitgutter#diff#run_diff(realtime, use_external_grep)
let op_mark_start = getpos("'[") let op_mark_start = getpos("'[")
let op_mark_end = getpos("']") let op_mark_end = getpos("']")
execute 'keepalt silent write' buff_file execute 'keepalt noautocmd silent write!' buff_file
call setbufvar(bufnr, "&mod", modified) call setbufvar(bufnr, "&mod", modified)
call setpos("'[", op_mark_start) call setpos("'[", op_mark_start)