From 23824041cdb79b6e3855844b60d3e1dce31601a6 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Fri, 6 Jul 2018 10:12:30 +0100 Subject: [PATCH] Force-update all buffers not just current after ShellCmdPost. --- plugin/gitgutter.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 2df21c4..71fb14d 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -193,14 +193,14 @@ augroup gitgutter autocmd BufEnter * call s:on_bufenter() autocmd CursorHold,CursorHoldI * call gitgutter#process_buffer(bufnr(''), 0) - autocmd FileChangedShellPost,ShellCmdPost * call gitgutter#process_buffer(bufnr(''), 1) + autocmd FileChangedShellPost * call gitgutter#process_buffer(bufnr(''), 1) " Ensure that all buffers are processed when opening vim with multiple files, e.g.: " " vim -o file1 file2 autocmd VimEnter * if winnr() != winnr('$') | call gitgutter#all(0) | endif - autocmd FocusGained * call gitgutter#all(1) + autocmd FocusGained,ShellCmdPost * call gitgutter#all(1) autocmd ColorScheme * call gitgutter#highlight#define_sign_column_highlight() | call gitgutter#highlight#define_highlights()