mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-04 19:28:58 +08:00
Avoid resetting 'last accessed tab' status
This commit is contained in:
1 parent
f116dcc8e2
commit
e7bf502a6a
1 file changed
+5
-1
@@ -4362,9 +4362,13 @@ function! fugitive#DidChange(...) abort
|
||||
if a:0 > 1 ? a:2 : (!a:0 || a:1 isnot# 0)
|
||||
let t = reltime()
|
||||
let t:fugitive_reload_status = t
|
||||
let prevnr = tabpagenr('#')
|
||||
for tabnr in range(1, tabpagenr('$'))
|
||||
call settabvar(tabnr, 'fugitive_reload_status', t)
|
||||
if tabnr != prevnr
|
||||
call settabvar(tabnr, 'fugitive_reload_status', t)
|
||||
endif
|
||||
endfor
|
||||
call settabvar(prevnr, 'fugitive_reload_status', t)
|
||||
call s:ReloadTabStatus()
|
||||
else
|
||||
call s:ReloadWinStatus()
|
||||
|
||||
Reference in new issue
Block a user