mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-11 21:03:53 -05:00
:Gstatus called from status window forces reload
This commit is contained in:
@@ -2189,8 +2189,12 @@ function! s:StatusCommand(line1, line2, range, count, bang, mods, reg, arg, args
|
|||||||
\ s:fnameescape(file)
|
\ s:fnameescape(file)
|
||||||
for winnr in range(1, winnr('$'))
|
for winnr in range(1, winnr('$'))
|
||||||
if s:cpath(file, fnamemodify(bufname(winbufnr(winnr)), ':p'))
|
if s:cpath(file, fnamemodify(bufname(winbufnr(winnr)), ':p'))
|
||||||
call s:ExpireStatus(-1)
|
if winnr == winnr()
|
||||||
|
call s:ReloadStatus()
|
||||||
|
else
|
||||||
|
call s:ExpireStatus(dir)
|
||||||
exe winnr . 'wincmd w'
|
exe winnr . 'wincmd w'
|
||||||
|
endif
|
||||||
let w:fugitive_status = dir
|
let w:fugitive_status = dir
|
||||||
return 1
|
return 1
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user