Support reload on custom chmod and unlink events

These were recently added to eunuch.vim, but other plugins may use them
as well.
This commit is contained in:
Tim Pope
2021-09-29 21:35:54 -04:00
parent 194d63da4f
commit e2883a5426

View File

@@ -4193,6 +4193,7 @@ endfunction
augroup fugitive_status augroup fugitive_status
autocmd! autocmd!
autocmd BufWritePost * call fugitive#DidChange(+expand('<abuf>'), 0) autocmd BufWritePost * call fugitive#DidChange(+expand('<abuf>'), 0)
autocmd User FileChmodPost,FileUnlinkPost call fugitive#DidChange(+expand('<abuf>'), 0)
autocmd ShellCmdPost,ShellFilterPost * nested call fugitive#DidChange(0) autocmd ShellCmdPost,ShellFilterPost * nested call fugitive#DidChange(0)
autocmd BufDelete * nested autocmd BufDelete * nested
\ if getbufvar(+expand('<abuf>'), 'buftype') ==# 'terminal' | \ if getbufvar(+expand('<abuf>'), 'buftype') ==# 'terminal' |