diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index db80f57..bb40eaf 100644 --- 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