motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit ea26a94bde45eba58a92cd544b0027d0644286e2 (tree)
parent 3d305c75a0f4eb673d916e3e1956b01de938103d
Author: Tim Pope <code@tpope.net>
Date:   Wed, 17 Jul 2019 14:33:29 -0400

Consistently position cursor on :Gstatus

Diffstat:
Mautoload/fugitive.vim | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -2185,9 +2185,10 @@ function! s:StatusCommand(line1, line2, range, count, bang, mods, reg, arg, args \ s:fnameescape(file) for winnr in range(1, winnr('$')) if s:cpath(file, fnamemodify(bufname(winbufnr(winnr)), ':p')) + call s:ExpireStatus(-1) exe winnr . 'wincmd w' let w:fugitive_status = dir - return s:ReloadStatus() + return 1 endif endfor if a:count ==# 0