Vim `has('patch...')` returns 对于不存在的补丁为真

Vim `has('patch...')` returns true for unexisting patches

要检查我的 Vim 版本是否有补丁 8.1.1310,我使用:

echo has('patch-8.1.1310')

which returns 1 所以 Vim 用 8.1.1310 打了补丁。出于好奇,我尝试了 echo has('patch-8.1.9999999999') 其中 returns 1 即使不存在这样的补丁 (:help changed-8.1)。

问题:为什么 has() returns 1 用于不存在的补丁程序?

我的 Vim 版本是 8.2.19。

答案在:help has-patch

The "patch-7.4.248" feature means that the Vim version is 7.5 or later, or it is version 7.4 and patch 248 was included.

如果 Vim 版本为 8.2,则 has('patch-8.x.y') returns 1 对于 x 等于 0 或 1。对于任何 y