mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
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:
@@ -81,7 +81,7 @@ function! gitgutter#diff#run_diff(realtime, use_external_grep)
|
||||
let op_mark_start = 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 setpos("'[", op_mark_start)
|
||||
|
||||
Reference in New Issue
Block a user