diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 9f8b2a4..e5684e4 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -2140,7 +2140,7 @@ function! s:buffer_repo() dict abort endfunction function! s:buffer_type(...) dict abort - return 'see b:fugitive_type' + return 'see per type events at :help fugitive-autocommands' endfunction call s:add_methods('buffer', ['repo', 'type']) @@ -3007,7 +3007,7 @@ function! s:TempReadPost(file) abort call s:Map('n', 'gq', ":bdelete", ' ') endif endif - return '' + return s:DoAutocmd('User FugitivePager') endfunction function! s:TempDelete(file) abort diff --git a/doc/fugitive.txt b/doc/fugitive.txt index 2de55b1..d939fd9 100644 --- a/doc/fugitive.txt +++ b/doc/fugitive.txt @@ -645,6 +645,10 @@ FugitiveStageBlob After loading a staged blob (file) object. These *User_FugitiveIndex* FugitiveIndex After loading the |fugitive-summary| buffer. + *User_FugitivePager* +FugitivePager After loading a temp file created by a command like + :Git --paginate or :Git blame. + *User_FugitiveChanged* FugitiveChanged After any event which can potentially change the repository, for example, any invocation of |:Git|.