diff --git a/README.mkd b/README.mkd index 228e4ce..21665e1 100644 --- a/README.mkd +++ b/README.mkd @@ -215,6 +215,7 @@ By default the signs are updated as follows: | Switch buffer | To notice change to git index | `g:gitgutter_eager` | | Switch tab | To notice change to git index | `g:gitgutter_eager` | | Focus the GUI | To notice change to git index | `g:gitgutter_eager` (not gVim on Windows) | +| After shell command | To notice change to git index | `g:gitgutter_eager` | | Read a file into a buffer | To display initial signs | [always] | | Save a buffer | So non-realtime signs are up to date | [always] | | Change a file outside Vim | To notice `git stash` | [always] | diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 0f90d91..11a5adf 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -196,7 +196,7 @@ augroup gitgutter endif if g:gitgutter_eager - autocmd BufWritePost,FileChangedShellPost * call gitgutter#process_buffer(bufnr(''), 0) + autocmd BufWritePost,FileChangedShellPost,ShellCmdPost * call gitgutter#process_buffer(bufnr(''), 0) autocmd BufEnter * \ if gettabvar(tabpagenr(), 'gitgutter_didtabenter') |