forked from aniani/vim
updated for version 7.2-105
This commit is contained in:
14
src/option.c
14
src/option.c
@@ -4119,12 +4119,22 @@ do_set(arg, opt_flags)
|
|||||||
&& options[opt_idx].var == VAR_WIN)
|
&& options[opt_idx].var == VAR_WIN)
|
||||||
goto skip;
|
goto skip;
|
||||||
|
|
||||||
/* Disallow changing some options from modelines */
|
/* Disallow changing some options from modelines. */
|
||||||
if ((opt_flags & OPT_MODELINE) && (flags & P_SECURE))
|
if (opt_flags & OPT_MODELINE)
|
||||||
|
{
|
||||||
|
if (flags & P_SECURE)
|
||||||
{
|
{
|
||||||
errmsg = (char_u *)_("E520: Not allowed in a modeline");
|
errmsg = (char_u *)_("E520: Not allowed in a modeline");
|
||||||
goto skip;
|
goto skip;
|
||||||
}
|
}
|
||||||
|
/* In diff mode some options are overruled. This avoids that
|
||||||
|
* 'foldmethod' becomes "marker" instead of "diff" and that
|
||||||
|
* "wrap" gets set. */
|
||||||
|
if (curwin->w_p_diff
|
||||||
|
&& (options[opt_idx].indir == PV_FDM
|
||||||
|
|| options[opt_idx].indir == PV_WRAP))
|
||||||
|
goto skip;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_SANDBOX
|
#ifdef HAVE_SANDBOX
|
||||||
/* Disallow changing some options in the sandbox */
|
/* Disallow changing some options in the sandbox */
|
||||||
|
@@ -676,6 +676,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 */
|
||||||
|
/**/
|
||||||
|
105,
|
||||||
/**/
|
/**/
|
||||||
104,
|
104,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user