fix(checkhealth): check outdated pynvim version properly #33175

Fixes #33174, a regression from #22962.

(cherry picked from commit e87d2ae383)
This commit is contained in:
zeertzjq
2025-03-30 22:02:59 +08:00
committed by github-actions[bot]
parent 9056c01a95
commit 89e0ea1788

View File

@ -564,7 +564,7 @@ local function version_info(python)
local nvim_path_base = vim.fn.fnamemodify(nvim_path, [[:~:h]])
local version_status = 'unknown; ' .. nvim_path_base
if is_bad_response(nvim_version) and is_bad_response(pypi_version) then
if not is_bad_response(nvim_version) and not is_bad_response(pypi_version) then
if vim.version.lt(nvim_version, pypi_version) then
version_status = 'outdated; from ' .. nvim_path_base
else