patch 8.1.1526: no numerical value for the patchlevel
Problem: No numerical value for the patchlevel.
Solution: Add v:versionlong.
diff --git a/src/version.c b/src/version.c
index 058dbc7..8a9885c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1526,
+/**/
1525,
/**/
1524,
@@ -3847,13 +3849,8 @@
int
highest_patch(void)
{
- int i;
- int h = 0;
-
- for (i = 0; included_patches[i] != 0; ++i)
- if (included_patches[i] > h)
- h = included_patches[i];
- return h;
+ // this relies on the highest patch number to be the first entry
+ return included_patches[0];
}
#if defined(FEAT_EVAL) || defined(PROTO)