mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Consistently position cursor on :Gstatus
This commit is contained in:
@@ -2185,9 +2185,10 @@ 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)
|
||||||
exe winnr . 'wincmd w'
|
exe winnr . 'wincmd w'
|
||||||
let w:fugitive_status = dir
|
let w:fugitive_status = dir
|
||||||
return s:ReloadStatus()
|
return 1
|
||||||
endif
|
endif
|
||||||
endfor
|
endfor
|
||||||
if a:count ==# 0
|
if a:count ==# 0
|
||||||
|
|||||||
Reference in New Issue
Block a user