options: comma-separated options don't allow duplicates (#9891)

Closes https://github.com/neovim/neovim/issues/9890
This commit is contained in:
Marco Hinz
2019-04-12 16:14:01 +02:00
committed by GitHub
parent 3b7a4f233b
commit d08692a824

View File

@@ -181,6 +181,7 @@ return {
{ {
full_name='backupskip', abbreviation='bsk', full_name='backupskip', abbreviation='bsk',
type='string', list='onecomma', scope={'global'}, type='string', list='onecomma', scope={'global'},
deny_duplicates=true,
vi_def=true, vi_def=true,
varname='p_bsk', varname='p_bsk',
defaults={if_true={vi=""}} defaults={if_true={vi=""}}
@@ -189,6 +190,7 @@ return {
full_name='belloff', abbreviation='bo', full_name='belloff', abbreviation='bo',
deny_duplicates=true, deny_duplicates=true,
type='string', list='comma', scope={'global'}, type='string', list='comma', scope={'global'},
deny_duplicates=true,
vi_def=true, vi_def=true,
varname='p_bo', varname='p_bo',
defaults={if_true={vi="all"}} defaults={if_true={vi="all"}}
@@ -756,6 +758,7 @@ return {
{ {
full_name='fileencodings', abbreviation='fencs', full_name='fileencodings', abbreviation='fencs',
type='string', list='onecomma', scope={'global'}, type='string', list='onecomma', scope={'global'},
deny_duplicates=true,
vi_def=true, vi_def=true,
varname='p_fencs', varname='p_fencs',
defaults={if_true={vi="ucs-bom,utf-8,default,latin1"}} defaults={if_true={vi="ucs-bom,utf-8,default,latin1"}}
@@ -1016,6 +1019,7 @@ return {
{ {
full_name='guifontset', abbreviation='gfs', full_name='guifontset', abbreviation='gfs',
type='string', list='onecomma', scope={'global'}, type='string', list='onecomma', scope={'global'},
deny_duplicates=true,
vi_def=true, vi_def=true,
varname='p_guifontset', varname='p_guifontset',
redraw={'ui_option'}, redraw={'ui_option'},
@@ -1070,6 +1074,7 @@ return {
{ {
full_name='helplang', abbreviation='hlg', full_name='helplang', abbreviation='hlg',
type='string', list='onecomma', scope={'global'}, type='string', list='onecomma', scope={'global'},
deny_duplicates=true,
vi_def=true, vi_def=true,
varname='p_hlg', varname='p_hlg',
defaults={if_true={vi=""}} defaults={if_true={vi=""}}
@@ -2240,6 +2245,7 @@ return {
{ {
full_name='spellfile', abbreviation='spf', full_name='spellfile', abbreviation='spf',
type='string', list='onecomma', scope={'buffer'}, type='string', list='onecomma', scope={'buffer'},
deny_duplicates=true,
secure=true, secure=true,
vi_def=true, vi_def=true,
alloced=true, alloced=true,
@@ -2250,6 +2256,7 @@ return {
{ {
full_name='spelllang', abbreviation='spl', full_name='spelllang', abbreviation='spl',
type='string', list='onecomma', scope={'buffer'}, type='string', list='onecomma', scope={'buffer'},
deny_duplicates=true,
vi_def=true, vi_def=true,
alloced=true, alloced=true,
expand=true, expand=true,
@@ -2260,6 +2267,7 @@ return {
{ {
full_name='spellsuggest', abbreviation='sps', full_name='spellsuggest', abbreviation='sps',
type='string', list='onecomma', scope={'global'}, type='string', list='onecomma', scope={'global'},
deny_duplicates=true,
secure=true, secure=true,
vi_def=true, vi_def=true,
expand=true, expand=true,
@@ -2702,6 +2710,7 @@ return {
{ {
full_name='wildoptions', abbreviation='wop', full_name='wildoptions', abbreviation='wop',
type='string', list='onecomma', scope={'global'}, type='string', list='onecomma', scope={'global'},
deny_duplicates=true,
vi_def=true, vi_def=true,
varname='p_wop', varname='p_wop',
defaults={if_true={vi=""}} defaults={if_true={vi=""}}