Mercurial > vim
diff src/version.c @ 17053:d5fa04016df0 v8.1.1526
patch 8.1.1526: no numerical value for the patchlevel
commit https://github.com/vim/vim/commit/37df9a4401f6737d6216306ea77a7e080c942aea
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 14 14:39:51 2019 +0200
patch 8.1.1526: no numerical value for the patchlevel
Problem: No numerical value for the patchlevel.
Solution: Add v:versionlong.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 14 Jun 2019 14:45:06 +0200 |
parents | 221d4b82bc0b |
children | f4de7ccdfd8c |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -778,6 +778,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1526, +/**/ 1525, /**/ 1524, @@ -3847,13 +3849,8 @@ static char *(extra_patches[]) = 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)