forked from aniani/vim
patch 9.0.0057: has('patch-xxx') returns true
Problem: has('patch-xxx') returns true.
Solution: Check for digit. (closes #10751)
This commit is contained in:
@@ -6473,7 +6473,7 @@ f_has(typval_T *argvars, typval_T *rettv)
|
||||
|| (minor == VIM_VERSION_MINOR
|
||||
&& has_patch(atoi((char *)name + 10))))));
|
||||
}
|
||||
else
|
||||
else if (isdigit(name[5]))
|
||||
n = has_patch(atoi((char *)name + 5));
|
||||
}
|
||||
else if (STRICMP(name, "vim_starting") == 0)
|
||||
|
||||
Reference in New Issue
Block a user