mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 05:13:53 -05:00
Avoid :normal during status reload
This was clearing the last line of output when attempting to reload status from a job close callback, so let's use a different method to change the column.
This commit is contained in:
@@ -2896,8 +2896,7 @@ function! s:ReloadStatusBuffer(...) abort
|
|||||||
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()
|
call fugitive#BufReadStatus()
|
||||||
exe s:StageSeek(info, original_lnum)
|
call setpos('.', [0, s:StageSeek(info, original_lnum), 1, 0])
|
||||||
normal! 0
|
|
||||||
return ''
|
return ''
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user