mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
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:
parent
8c5f3aebc8
commit
471da2de81
@ -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));
|
||||
}
|
||||
|
@ -223,7 +223,7 @@ static int included_patches[] = {
|
||||
240,
|
||||
239,
|
||||
//238,
|
||||
//237,
|
||||
237,
|
||||
236,
|
||||
//235,
|
||||
234,
|
||||
|
Loading…
Reference in New Issue
Block a user