Mercurial > vim
annotate src/testdir/test_lispwords.vim @ 10881:8f6df2f6d2fc v8.0.0330
patch 8.0.0330: illegal memory access after "vapo"
commit https://github.com/vim/vim/commit/84b2a381451e9068b09ef6d85f5e8cf1598e7355
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 17 11:40:00 2017 +0100
patch 8.0.0330: illegal memory access after "vapo"
Problem: Illegal memory access after "vapo". (Dominique Pelle)
Solution: Fix the cursor column.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 17 Feb 2017 11:45:04 +0100 |
parents | 979f8a595326 |
children | 44aa2997239d |
rev | line source |
---|---|
7293
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
1 " Tests for 'lispwords' settings being global-local |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
3 set nocompatible viminfo+=nviminfo |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
4 |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
5 func Test_global_local_lispwords() |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
6 setglobal lispwords=foo,bar,baz |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
7 setlocal lispwords-=foo | setlocal lispwords+=quux |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
8 call assert_equal('foo,bar,baz', &g:lispwords) |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 call assert_equal('bar,baz,quux', &l:lispwords) |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 call assert_equal('bar,baz,quux', &lispwords) |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
12 setlocal lispwords< |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
13 call assert_equal('foo,bar,baz', &g:lispwords) |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
14 call assert_equal('foo,bar,baz', &l:lispwords) |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 call assert_equal('foo,bar,baz', &lispwords) |
979f8a595326
commit https://github.com/vim/vim/commit/6cd1345307440491580e5e86cb82c54ee9a46baa
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 endfunc |