Always fire BufReadStatus's autocmd

Fix #2161.

Always execute BufReadStatus's return value because that's the code that
fires the FugitiveIndex autocmd.
This commit is contained in:
David Briscoe authored and Tim Pope committed 2023-04-28 23:23:46 -04:00
1 parent e6651a79fa
commit 5f0d280b51
1 file changed
+1 -1
+1 -1
View File
@@ -4265,7 +4265,7 @@ function! s:ReloadStatusBuffer(...) abort
endif
let original_lnum = a:0 ? a:1 : line('.')
let info = s:StageInfo(original_lnum)
call fugitive#BufReadStatus(0)
exe fugitive#BufReadStatus(0)
call setpos('.', [0, s:StageSeek(info, original_lnum), 1, 0])
return ''
endfunction