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
This commit is contained in:
oni-link 2014-04-18 15:42:51 +02:00 committed by Thiago de Arruda
parent 8c5f3aebc8
commit 471da2de81
2 changed files with 2 additions and 3 deletions

View File

@ -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));
}

View File

@ -223,7 +223,7 @@ static int included_patches[] = {
240,
239,
//238,
//237,
237,
236,
//235,
234,