Compensate for very old Vim without settabvar()

This commit is contained in:
Tim Pope 2019-07-06 07:08:05 -04:00
parent 873ede7aa4
commit 81e57453ce

View File

@ -2182,7 +2182,8 @@ function! fugitive#ReloadStatus(...) abort
call s:ExpireStatus(a:0 ? a:1 : -2)
if a:0 > 1 ? a:2 : s:CanAutoReloadStatus()
let t = reltime()
for tabnr in range(1, tabpagenr('$'))
let t:fugitive_reload_status = t
for tabnr in exists('*settabvar') ? range(1, tabpagenr('$')) : []
call settabvar(tabnr, 'fugitive_reload_status', t)
endfor
call s:ReloadTabStatus()