mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
updated for version 7.1-012
This commit is contained in:
19
src/option.c
19
src/option.c
@@ -8219,6 +8219,25 @@ set_option_value(name, number, string, opt_flags)
|
|||||||
varp = get_varp(&options[opt_idx]);
|
varp = get_varp(&options[opt_idx]);
|
||||||
if (varp != NULL) /* hidden option is not changed */
|
if (varp != NULL) /* hidden option is not changed */
|
||||||
{
|
{
|
||||||
|
if (number == 0 && string != NULL)
|
||||||
|
{
|
||||||
|
int index;
|
||||||
|
|
||||||
|
/* Either we are given a string or we are setting option
|
||||||
|
* to zero. */
|
||||||
|
for (index = 0; string[index] == '0'; ++index)
|
||||||
|
;
|
||||||
|
if (string[index] != NUL || index == 0)
|
||||||
|
{
|
||||||
|
/* There's another character after zeros or the string
|
||||||
|
* is empty. In both cases, we are trying to set a
|
||||||
|
* num option using a string. */
|
||||||
|
EMSG3(_("E521: Number required: &%s = '%s'"),
|
||||||
|
name, string);
|
||||||
|
return; /* do nothing as we hit an error */
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
if (flags & P_NUM)
|
if (flags & P_NUM)
|
||||||
(void)set_num_option(opt_idx, varp, number,
|
(void)set_num_option(opt_idx, varp, number,
|
||||||
NULL, 0, opt_flags);
|
NULL, 0, opt_flags);
|
||||||
|
@@ -666,6 +666,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
12,
|
||||||
/**/
|
/**/
|
||||||
11,
|
11,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user