summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-24 21:46:19 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-24 21:46:19 +0100
commit031cb743ae154cfb727a9b7787bdcb61202ff1c8 (patch)
treef951954f05fc9c32789c69aea475182ed77ad56d
parent319afe3804741db5a6c188bd69535fa7ed044c62 (diff)
downloadvim-git-031cb743ae154cfb727a9b7787bdcb61202ff1c8.tar.gz
patch 8.0.0101v8.0.0101
Problem: Some options are not strictly checked. Solution: Add flags for strickter checks.
-rw-r--r--src/option.c20
-rw-r--r--src/version.c2
2 files changed, 13 insertions, 9 deletions
diff --git a/src/option.c b/src/option.c
index 35563c3d5..52330f790 100644
--- a/src/option.c
+++ b/src/option.c
@@ -992,7 +992,7 @@ static struct vimoption options[] =
(char_u *)NULL, PV_NONE,
#endif
{(char_u *)FALSE, (char_u *)0L} SCRIPTID_INIT},
- {"dictionary", "dict", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP,
+ {"dictionary", "dict", P_STRING|P_EXPAND|P_VI_DEF|P_ONECOMMA|P_NODUP|P_NFNAME,
#ifdef FEAT_INS_EXPAND
(char_u *)&p_dict, PV_DICT,
#else
@@ -2058,7 +2058,7 @@ static struct vimoption options[] =
{(char_u *)NULL, (char_u *)0L}
#endif
SCRIPTID_INIT},
- {"printexpr", "pexpr", P_STRING|P_VI_DEF,
+ {"printexpr", "pexpr", P_STRING|P_VI_DEF|P_SECURE,
#ifdef FEAT_POSTSCRIPT
(char_u *)&p_pexpr, PV_NONE,
{(char_u *)"", (char_u *)0L}
@@ -7021,6 +7021,7 @@ did_set_string_option(
#if defined(FEAT_TOOLBAR) && !defined(FEAT_GUI_W32)
+ /* 'toolbar' */
else if (varp == &p_toolbar)
{
if (opt_strings_flags(p_toolbar, p_toolbar_values,
@@ -7235,6 +7236,7 @@ did_set_string_option(
#endif
#if defined(FEAT_RENDER_OPTIONS)
+ /* 'renderoptions' */
else if (varp == &p_rop && gui.in_use)
{
if (!gui_mch_set_rendering_options(p_rop))
@@ -7262,19 +7264,19 @@ did_set_string_option(
else
{
p = NULL;
- if (varp == &p_ww)
+ if (varp == &p_ww) /* 'whichwrap' */
p = (char_u *)WW_ALL;
- if (varp == &p_shm)
+ if (varp == &p_shm) /* 'shortmess' */
p = (char_u *)SHM_ALL;
- else if (varp == &(p_cpo))
+ else if (varp == &(p_cpo)) /* 'cpoptions' */
p = (char_u *)CPO_ALL;
- else if (varp == &(curbuf->b_p_fo))
+ else if (varp == &(curbuf->b_p_fo)) /* 'formatoptions' */
p = (char_u *)FO_ALL;
#ifdef FEAT_CONCEAL
- else if (varp == &curwin->w_p_cocu)
+ else if (varp == &curwin->w_p_cocu) /* 'concealcursor' */
p = (char_u *)COCU_ALL;
#endif
- else if (varp == &p_mouse)
+ else if (varp == &p_mouse) /* 'mouse' */
{
#ifdef FEAT_MOUSE
p = (char_u *)MOUSE_ALL;
@@ -7284,7 +7286,7 @@ did_set_string_option(
#endif
}
#if defined(FEAT_GUI)
- else if (varp == &p_go)
+ else if (varp == &p_go) /* 'guioptions' */
p = (char_u *)GO_ALL;
#endif
if (p != NULL)
diff --git a/src/version.c b/src/version.c
index 5f13f7689..449732f4a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -765,6 +765,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 101,
+/**/
100,
/**/
99,