From 471da2de810964052d4d2ab5ba0e23446ea7880d Mon Sep 17 00:00:00 2001 From: oni-link Date: Fri, 18 Apr 2014 15:42:51 +0200 Subject: vim-patch:7.4.237 Problem: When some patches was not included has("patch-7.4.123") may return true falsely. Solution: Check for the specific patch number. https://code.google.com/p/vim/source/detail?r=71b165a378ad580818f6d497ecf0f8ad054a9683 --- src/eval.c | 3 +-- src/version.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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, -- cgit