From ddedd5bd20b030dc6cbc8d4a83a4de5af77f8054 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 11 Feb 2024 16:12:58 -0500 Subject: [PATCH] Add corresponding nvim check for tabpagenr('#') --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index cb6ae9e..b2eb07f 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -4368,7 +4368,7 @@ 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 = has('patch-8.2.1401') ? tabpagenr('#') : 0 + let prevnr = has('patch-8.2.1401') || has('nvim-0.7') ? tabpagenr('#') : 0 for tabnr in range(1, tabpagenr('$')) if tabnr != prevnr call settabvar(tabnr, 'fugitive_reload_status', t)