diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-09-17 09:39:36 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-17 09:39:36 -0400 |
| commit | 1ec3d37192194d6961621f17fc5a185356586339 (patch) | |
| tree | f8d5b2a694bcccbce4aae1284abea9ec86eb7c90 /src/nvim/testdir/test_modeline.vim | |
| parent | 5f144efefa66c9694123b679bab52992279a6015 (diff) | |
| parent | f46341fa43075443241fe641905656c74a9523ee (diff) | |
| download | rneovim-1ec3d37192194d6961621f17fc5a185356586339.tar.gz rneovim-1ec3d37192194d6961621f17fc5a185356586339.tar.bz2 rneovim-1ec3d37192194d6961621f17fc5a185356586339.zip | |
Merge pull request #15580 from seandewar/vim-8.2.3378
vim-patch:8.2.{3378,3379,3384,3386,3398,3400}
Diffstat (limited to 'src/nvim/testdir/test_modeline.vim')
| -rw-r--r-- | src/nvim/testdir/test_modeline.vim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_modeline.vim b/src/nvim/testdir/test_modeline.vim index 9bdada616c..b3fe79f545 100644 --- a/src/nvim/testdir/test_modeline.vim +++ b/src/nvim/testdir/test_modeline.vim @@ -280,3 +280,13 @@ func Test_modeline_fails_modelineexpr() call s:modeline_fails('tabline', 'tabline=Something()', 'E992:') call s:modeline_fails('titlestring', 'titlestring=Something()', 'E992:') endfunc + +func Test_modeline_disable() + set modeline + call writefile(['vim: sw=2', 'vim: nomodeline', 'vim: sw=3'], 'Xmodeline_disable') + edit Xmodeline_disable + call assert_equal(2, &sw) + call delete('Xmodeline_disable') +endfunc + +" vim: shiftwidth=2 sts=2 expandtab |