From 81e57453ce2d4ec3c50780c6368c568ef3247c98 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 6 Jul 2019 07:08:05 -0400 Subject: [PATCH] Compensate for very old Vim without settabvar() --- autoload/fugitive.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 89da4de..6175bcd 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -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()