Update tabpagenr('#') version constraint to fix ml_get error

References: https://github.com/tpope/vim-fugitive/pull/2262
This commit is contained in:
Tim Pope
2024-02-11 20:53:40 -05:00
parent 2a388ef5ba
commit 9f92ff14d9

View File

@@ -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)