commit 39d904051d2cbd1933a2fca8b44f877988539a19 (tree)
parent e89d22e5daa362cc3de956d29b0c839515de3a9e
Author: Tim Pope <code@tpope.net>
Date: Wed, 17 Mar 2021 22:41:48 -0400
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.
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim
@@ -2896,8 +2896,7 @@ function! s:ReloadStatusBuffer(...) abort
let original_lnum = a:0 ? a:1 : line('.')
let info = s:StageInfo(original_lnum)
call fugitive#BufReadStatus()
- exe s:StageSeek(info, original_lnum)
- normal! 0
+ call setpos('.', [0, s:StageSeek(info, original_lnum), 1, 0])
return ''
endfunction