mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -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 {
|
||||
// Options that are a list of flags.
|
||||
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_VI;
|
||||
else if (varp == &(curbuf->b_p_fo))
|
||||
} else if (varp == &(curbuf->b_p_fo)) { // 'formatoptions'
|
||||
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;
|
||||
else if (varp == &p_mouse) {
|
||||
} else if (varp == &p_mouse) { // 'mouse'
|
||||
p = (char_u *)MOUSE_ALL;
|
||||
}
|
||||
if (p != NULL) {
|
||||
|
@ -575,6 +575,7 @@ return {
|
||||
full_name='dictionary', abbreviation='dict',
|
||||
type='string', list='onecomma', scope={'global', 'buffer'},
|
||||
deny_duplicates=true,
|
||||
normal_fname_chars=true,
|
||||
vi_def=true,
|
||||
expand=true,
|
||||
varname='p_dict',
|
||||
@ -1750,6 +1751,7 @@ return {
|
||||
{
|
||||
full_name='printexpr', abbreviation='pexpr',
|
||||
type='string', scope={'global'},
|
||||
secure=true,
|
||||
vi_def=true,
|
||||
varname='p_pexpr',
|
||||
defaults={if_true={vi=""}}
|
||||
|
@ -851,7 +851,7 @@ static const int included_patches[] = {
|
||||
// 104,
|
||||
// 103 NA
|
||||
// 102,
|
||||
// 101,
|
||||
101,
|
||||
100,
|
||||
99,
|
||||
// 98 NA
|
||||
|
Loading…
Reference in New Issue
Block a user