mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
vim-patch:8.0.0101
Problem: Some options are not strictly checked.
Solution: Add flags for strickter checks.
031cb743ae
This commit is contained in:
parent
4bb0e95abb
commit
583b68f5a9
@ -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) {
|
||||||
|
@ -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=""}}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user