fix(:checkhealth): open after current tabpage (#40319)

This commit is contained in:
zeertzjq
2026-06-19 17:45:21 +08:00
committed by GitHub
parent 0639f6e41a
commit 1e30f5d242
2 changed files with 13 additions and 2 deletions

View File

@@ -427,7 +427,7 @@ function M._check(eap)
elseif emptybuf then
vim.cmd.buffer(bufnr)
else
vim.cmd.sbuffer { bufnr, mods = { tab = 1 } }
vim.cmd.sbuffer { bufnr, mods = { tab = vim.api.nvim_tabpage_get_number(0) } }
end
end