is 501. Read-only. "version" also works, for backwards
compatibility.
Use |has()| to check if a certain patch was included, e.g.: >
- if has("patch123")
+ if has("patch-7.4.123")
< Note that patch numbers are specific to the version, thus both
version 5.0 and 5.1 may have a patch 123, but these are
completely different.
{
int major = atoi((char *)name + 6);
int minor = atoi((char *)name + 8);
- int patch = atoi((char *)name + 10);
/* Expect "patch-9.9.01234". */
n = (major < VIM_VERSION_MAJOR
|| (major == VIM_VERSION_MAJOR
&& (minor < VIM_VERSION_MINOR
|| (minor == VIM_VERSION_MINOR
- && patch <= highest_patch()))));
+ && has_patch(atoi((char *)name + 10))))));
}
else
n = has_patch(atoi((char *)name + 5));