mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
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:
@@ -4265,7 +4265,7 @@ function! s:ReloadStatusBuffer(...) abort
|
|||||||
endif
|
endif
|
||||||
let original_lnum = a:0 ? a:1 : line('.')
|
let original_lnum = a:0 ? a:1 : line('.')
|
||||||
let info = s:StageInfo(original_lnum)
|
let info = s:StageInfo(original_lnum)
|
||||||
call fugitive#BufReadStatus(0)
|
exe fugitive#BufReadStatus(0)
|
||||||
call setpos('.', [0, s:StageSeek(info, original_lnum), 1, 0])
|
call setpos('.', [0, s:StageSeek(info, original_lnum), 1, 0])
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|||||||
Reference in New Issue
Block a user