mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-10 12:33:46 -05:00
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:
@@ -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' |
|
||||||
|
|||||||
Reference in New Issue
Block a user