diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-08-29 09:46:10 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-08-29 09:46:10 +0200 |
commit | f2d912e8bc64927f9089e5da9185b9f108d28c0d (patch) | |
tree | 6b5fbe70727e536673d36bd7df71c63d366219f5 /src/testdir/test55.in | |
parent | 26f08b06b681085e8f40b109871fe7ae2f3bd7c6 (diff) | |
download | vim-git-f2d912e8bc64927f9089e5da9185b9f108d28c0d.tar.gz |
updated for version 7.4.419v7.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)
Diffstat (limited to 'src/testdir/test55.in')
-rw-r--r-- | src/testdir/test55.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testdir/test55.in b/src/testdir/test55.in index 8e073f30f..140cb7c0e 100644 --- a/src/testdir/test55.in +++ b/src/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 |