aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/eval.c3
-rw-r--r--src/version.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/eval.c b/src/eval.c
index b53b04258f..09e1f8b4aa 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -10371,14 +10371,13 @@ static void f_has(typval_T *argvars, typval_T *rettv)
&& vim_isdigit(name[10])) {
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));
}
diff --git a/src/version.c b/src/version.c
index 618caece87..d7a8829106 100644
--- a/src/version.c
+++ b/src/version.c
@@ -223,7 +223,7 @@ static int included_patches[] = {
240,
239,
//238,
- //237,
+ 237,
236,
//235,
234,