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 6e2310a15437c1454cbf5455cf39d33a88b57621 (tree)
parent 387cb5c2a017fb4203ad4b29560179239d53d629
Author: Tim Pope <code@tpope.net>
Date:   Thu, 18 Jul 2019 16:57:24 -0400

:Gstatus called from status window forces reload

Diffstat:
Mautoload/fugitive.vim | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -2189,8 +2189,12 @@ 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' + if winnr == winnr() + call s:ReloadStatus() + else + call s:ExpireStatus(dir) + exe winnr . 'wincmd w' + endif let w:fugitive_status = dir return 1 endif