Further decouple #BufReadStatus() from v:cmdbang

This commit is contained in:
Tim Pope committed 2021-10-16 12:58:13 -04:00
1 parent 0615cd2baf
commit 88c7f867cf
2 files changed
+4 -4

No files matched your search

+1 -1
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> |