summaryrefslogtreecommitdiff
path: root/src/testdir/test_modeline.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-05-23 17:08:49 +0200
committerBram Moolenaar <Bram@vim.org>2019-05-23 17:08:49 +0200
commit7e800c6047c8a9cc3e5cbc019a4dc91ec36616b1 (patch)
tree49bd1954ee9fe9646b1f177db93b9dd23a95a7a2 /src/testdir/test_modeline.vim
parent110289e78195b6d01e1e6ad26ad450de476d41c1 (diff)
downloadvim-git-7e800c6047c8a9cc3e5cbc019a4dc91ec36616b1.tar.gz
patch 8.1.1367: can set 'modelineexpr' in modelinev8.1.1367
Problem: can set 'modelineexpr' in modeline. Solution: Add P_SECURE flag.
Diffstat (limited to 'src/testdir/test_modeline.vim')
-rw-r--r--src/testdir/test_modeline.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_modeline.vim b/src/testdir/test_modeline.vim
index c33a0801c..c3c624d26 100644
--- a/src/testdir/test_modeline.vim
+++ b/src/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', '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:')