From 9f92ff14d9d1169e08f197a2250fcaea88e9c767 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 11 Feb 2024 20:53:40 -0500 Subject: [PATCH] Update tabpagenr('#') version constraint to fix ml_get error References: https://github.com/tpope/vim-fugitive/pull/2262 --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 6f6c6da..6fb4547 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') || has('nvim-0.7') ? tabpagenr('#') : 0 + let prevnr = has('patch-9.0.1362') || has('nvim-0.9') ? tabpagenr('#') : 0 for tabnr in range(1, tabpagenr('$')) if tabnr != prevnr call settabvar(tabnr, 'fugitive_reload_status', t)