vim-patch:8.0.0101

Problem:    Some options are not strictly checked.
Solution:   Add flags for strickter checks.

031cb743ae
This commit is contained in:
ckelsel 2017-09-24 11:06:16 +08:00
parent 4bb0e95abb
commit 583b68f5a9
3 changed files with 10 additions and 7 deletions

View File

@ -3172,17 +3172,18 @@ did_set_string_option (
} else { } else {
// Options that are a list of flags. // Options that are a list of flags.
p = NULL; p = NULL;
if (varp == &p_ww) if (varp == &p_ww) { // 'whichwrap'
p = (char_u *)WW_ALL; p = (char_u *)WW_ALL;
if (varp == &p_shm) }
if (varp == &p_shm) { // 'shortmess'
p = (char_u *)SHM_ALL; p = (char_u *)SHM_ALL;
else if (varp == &(p_cpo)) } else if (varp == &(p_cpo)) { // 'cpoptions'
p = (char_u *)CPO_VI; p = (char_u *)CPO_VI;
else if (varp == &(curbuf->b_p_fo)) } else if (varp == &(curbuf->b_p_fo)) { // 'formatoptions'
p = (char_u *)FO_ALL; p = (char_u *)FO_ALL;
else if (varp == &curwin->w_p_cocu) } else if (varp == &curwin->w_p_cocu) { // 'concealcursor'
p = (char_u *)COCU_ALL; p = (char_u *)COCU_ALL;
else if (varp == &p_mouse) { } else if (varp == &p_mouse) { // 'mouse'
p = (char_u *)MOUSE_ALL; p = (char_u *)MOUSE_ALL;
} }
if (p != NULL) { if (p != NULL) {

View File

@ -575,6 +575,7 @@ return {
full_name='dictionary', abbreviation='dict', full_name='dictionary', abbreviation='dict',
type='string', list='onecomma', scope={'global', 'buffer'}, type='string', list='onecomma', scope={'global', 'buffer'},
deny_duplicates=true, deny_duplicates=true,
normal_fname_chars=true,
vi_def=true, vi_def=true,
expand=true, expand=true,
varname='p_dict', varname='p_dict',
@ -1750,6 +1751,7 @@ return {
{ {
full_name='printexpr', abbreviation='pexpr', full_name='printexpr', abbreviation='pexpr',
type='string', scope={'global'}, type='string', scope={'global'},
secure=true,
vi_def=true, vi_def=true,
varname='p_pexpr', varname='p_pexpr',
defaults={if_true={vi=""}} defaults={if_true={vi=""}}

View File

@ -851,7 +851,7 @@ static const int included_patches[] = {
// 104, // 104,
// 103 NA // 103 NA
// 102, // 102,
// 101, 101,
100, 100,
99, 99,
// 98 NA // 98 NA