diff options
author | James McCoy <jamessan@jamessan.com> | 2019-06-22 22:06:30 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2019-06-26 00:15:06 -0400 |
commit | 536e9320a01f06e2be2f2a9097da4be4a2b8241e (patch) | |
tree | 75f723705e8d142cfb633a56fbc216af4f761ce9 | |
parent | 3bd532ad1568a7548fb95fbe285de668af2a1d90 (diff) | |
download | rneovim-536e9320a01f06e2be2f2a9097da4be4a2b8241e.tar.gz rneovim-536e9320a01f06e2be2f2a9097da4be4a2b8241e.tar.bz2 rneovim-536e9320a01f06e2be2f2a9097da4be4a2b8241e.zip |
vim-patch:8.1.1367: can set 'modelineexpr' in modeline
Problem: can set 'modelineexpr' in modeline.
Solution: Add P_SECURE flag.
https://github.com/vim/vim/commit/7e800c6047c8a9cc3e5cbc019a4dc91ec36616b1
-rw-r--r-- | src/nvim/options.lua | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_modeline.vim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/options.lua b/src/nvim/options.lua index 7fa2d5bd60..7ca1b4d64e 100644 --- a/src/nvim/options.lua +++ b/src/nvim/options.lua @@ -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}} }, diff --git a/src/nvim/testdir/test_modeline.vim b/src/nvim/testdir/test_modeline.vim index 8f2c42a6b5..8cd6e552e7 100644 --- a/src/nvim/testdir/test_modeline.vim +++ b/src/nvim/testdir/test_modeline.vim @@ -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:') |