diff options
| author | James McCoy <jamessan@jamessan.com> | 2016-12-09 09:42:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-12-09 09:42:23 -0500 |
| commit | 4a2d2248e89ea7c409e1d76beb9d39aea2b07fbe (patch) | |
| tree | e123223fb0afe7c18ca35d2422c93e13c5282cbc /src/nvim/testdir/test_syntax.vim | |
| parent | 20995c79602ac8361a46d24a298130f83d4df035 (diff) | |
| parent | 7775fb7dff89a70e247b77c233859e017ab017df (diff) | |
| download | rneovim-4a2d2248e89ea7c409e1d76beb9d39aea2b07fbe.tar.gz rneovim-4a2d2248e89ea7c409e1d76beb9d39aea2b07fbe.tar.bz2 rneovim-4a2d2248e89ea7c409e1d76beb9d39aea2b07fbe.zip | |
Merge pull request #5736 from jamessan/vim-7.4.1754
vim-patch:7.4.1754
Diffstat (limited to 'src/nvim/testdir/test_syntax.vim')
| -rw-r--r-- | src/nvim/testdir/test_syntax.vim | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_syntax.vim b/src/nvim/testdir/test_syntax.vim index 309c0f460b..af2cbbfe8e 100644 --- a/src/nvim/testdir/test_syntax.vim +++ b/src/nvim/testdir/test_syntax.vim @@ -61,3 +61,18 @@ func Test_syn_iskeyword() quit! endfunc + +func Test_syntax_after_reload() + split Xsomefile + call setline(1, ['hello', 'there']) + w! + only! + setl filetype=hello + au FileType hello let g:gotit = 1 + call assert_false(exists('g:gotit')) + edit other + buf Xsomefile + call assert_equal('hello', &filetype) + call assert_true(exists('g:gotit')) + call delete('Xsomefile') +endfunc |