diff options
| author | Scott Prager <splinterofchaos@gmail.com> | 2014-10-21 10:20:59 -0400 |
|---|---|---|
| committer | Scott Prager <splinterofchaos@gmail.com> | 2014-11-11 12:05:51 -0500 |
| commit | 96be11f609fbdfff64472dc0bf8a4f4528cf4f95 (patch) | |
| tree | b8b92bf1f1e73f9de6b567dfd6f5fe615ff7fb05 /src/nvim/testdir | |
| parent | e450c541ddfe1266d3d56b594f83ab197e747584 (diff) | |
| download | rneovim-96be11f609fbdfff64472dc0bf8a4f4528cf4f95.tar.gz rneovim-96be11f609fbdfff64472dc0bf8a4f4528cf4f95.tar.bz2 rneovim-96be11f609fbdfff64472dc0bf8a4f4528cf4f95.zip | |
vim-patch:7.4.419
Problem: Whan part of a list is locked it's possible to make changes.
Solution: Check if any of the list items is locked before make a change.
(ZyX)
https://code.google.com/p/vim/source/detail?r=v7-4-419
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test55.in | 15 | ||||
| -rw-r--r-- | src/nvim/testdir/test55.ok | 5 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/testdir/test55.in b/src/nvim/testdir/test55.in index 8e073f30f2..140cb7c0e5 100644 --- a/src/nvim/testdir/test55.in +++ b/src/nvim/testdir/test55.in @@ -282,6 +282,21 @@ let l = [0, 1, 2, 3] : $put =ps : endfor :endfor +:unlet l +:let l = [1, 2, 3, 4] +:lockvar! l +:$put =string(l) +:unlockvar l[1] +:unlet l[0:1] +:$put =string(l) +:unlet l[1:2] +:$put =string(l) +:unlockvar l[1] +:let l[0:1] = [0, 1] +:$put =string(l) +:let l[1:2] = [0, 1] +:$put =string(l) +:unlet l :" :lockvar/islocked() triggering script autoloading :set rtp+=./sautest :lockvar g:footest#x diff --git a/src/nvim/testdir/test55.ok b/src/nvim/testdir/test55.ok index dfd8060db7..e8560de401 100644 --- a/src/nvim/testdir/test55.ok +++ b/src/nvim/testdir/test55.ok @@ -86,6 +86,11 @@ FFFFFFF FFpFFpp 0000-000 ppppppp +[1, 2, 3, 4] +[1, 2, 3, 4] +[1, 2, 3, 4] +[1, 2, 3, 4] +[1, 2, 3, 4] locked g:footest#x:-1 exists g:footest#x:0 g:footest#x: 1 |