Further decouple #BufReadStatus() from v:cmdbang

This commit is contained in:
Tim Pope
2021-10-16 12:56:03 -04:00
parent 0615cd2baf
commit 88c7f867cf
2 changed files with 4 additions and 4 deletions

View File

@@ -628,7 +628,7 @@ augroup fugitive
autocmd BufReadCmd index{,.lock}
\ if FugitiveIsGitDir(expand('<amatch>:p:h')) |
\ let b:git_dir = s:Slash(expand('<amatch>:p:h')) |
\ exe fugitive#BufReadStatus() |
\ exe fugitive#BufReadStatus(v:cmdbang) |
\ elseif filereadable(expand('<amatch>')) |
\ silent doautocmd BufReadPre |
\ keepalt read <amatch> |