From 39d904051d2cbd1933a2fca8b44f877988539a19 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Wed, 17 Mar 2021 22:41:48 -0400 Subject: [PATCH] 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. --- autoload/fugitive.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 1af52a5..6e48d9d 100644 --- 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