diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index e0ce9b3..4969cc9 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -1391,6 +1391,7 @@ function! fugitive#BufReadStatus() abort \ 'status'] endif call s:ReplaceCmd(call('fugitive#Prepare', cmd), 1) + silent doautocmd BufReadPost if b:fugitive_display_format if &filetype !=# 'git' set filetype=git @@ -1445,7 +1446,7 @@ function! fugitive#BufReadStatus() abort nnoremap . : =fnameescape(StatusCfile()) nnoremap g? :help fugitive-:Gstatus nnoremap :help fugitive-:Gstatus - return 'silent doautocmd BufReadPost' + return '' catch /^fugitive:/ return 'echoerr v:errmsg' endtry