Avoid resetting 'last accessed tab' status

This commit is contained in:
Luke Davis
2024-01-30 23:21:03 +00:00
committed by Tim Pope
parent f116dcc8e2
commit e7bf502a6a

View File

@@ -4362,9 +4362,13 @@ function! fugitive#DidChange(...) abort
if a:0 > 1 ? a:2 : (!a:0 || a:1 isnot# 0) if a:0 > 1 ? a:2 : (!a:0 || a:1 isnot# 0)
let t = reltime() let t = reltime()
let t:fugitive_reload_status = t let t:fugitive_reload_status = t
let prevnr = tabpagenr('#')
for tabnr in range(1, tabpagenr('$')) for tabnr in range(1, tabpagenr('$'))
if tabnr != prevnr
call settabvar(tabnr, 'fugitive_reload_status', t) call settabvar(tabnr, 'fugitive_reload_status', t)
endif
endfor endfor
call settabvar(prevnr, 'fugitive_reload_status', t)
call s:ReloadTabStatus() call s:ReloadTabStatus()
else else
call s:ReloadWinStatus() call s:ReloadWinStatus()