mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
vim-patch:8.1.1367: can set 'modelineexpr' in modeline
Problem: can set 'modelineexpr' in modeline.
Solution: Add P_SECURE flag.
7e800c6047
This commit is contained in:
parent
3bd532ad15
commit
536e9320a0
@ -1551,6 +1551,7 @@ return {
|
||||
full_name='modelineexpr', abbreviation='mle',
|
||||
type='bool', scope={'global'},
|
||||
vi_def=true,
|
||||
secure=true,
|
||||
varname='p_mle',
|
||||
defaults={if_true={vi=false}}
|
||||
},
|
||||
|
@ -119,6 +119,7 @@ func Test_modeline_fails_always()
|
||||
call s:modeline_fails('makespellmem', 'makespellmem=Something()', 'E520:')
|
||||
call s:modeline_fails('mzschemedll', 'mzschemedll=Something()', 'E520:')
|
||||
call s:modeline_fails('mzschemegcdll', 'mzschemegcdll=Something()', 'E520:')
|
||||
call s:modeline_fails('modelineexpr', 'modelineexpr=Something()', 'E520:')
|
||||
call s:modeline_fails('omnifunc', 'omnifunc=Something()', 'E520:')
|
||||
call s:modeline_fails('operatorfunc', 'operatorfunc=Something()', 'E520:')
|
||||
call s:modeline_fails('perldll', 'perldll=Something()', 'E520:')
|
||||
|
Loading…
Reference in New Issue
Block a user