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:
Tim Pope
2021-03-17 22:41:48 -04:00
parent e89d22e5da
commit 39d904051d

View File

@@ -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