diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-07-12 20:17:03 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-07-12 20:17:03 +0200 |
commit | b7b9efbccfe17ee3f7b1bb877b7745d5bfbf0804 (patch) | |
tree | 4db93ec0c2518ed5879e9253cd4b13d7eed1970c /src/testdir/test_blob.vim | |
parent | 0231f8312b11a259d9cb550f3318895f6b4d76be (diff) |
patch 8.1.1671: copying a blob may result in it being lockedv8.1.1671
Problem: Copying a blob may result in it being locked.
Solution: Reset v_lock. (Ken Takata, closes #4648)
Diffstat (limited to 'src/testdir/test_blob.vim')
-rw-r--r-- | src/testdir/test_blob.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_blob.vim b/src/testdir/test_blob.vim index b01e11be22..273465d531 100644 --- a/src/testdir/test_blob.vim +++ b/src/testdir/test_blob.vim @@ -71,6 +71,10 @@ func Test_blob_assign() call assert_fails('let b .= "xx"', 'E734:') call assert_fails('let b += "xx"', 'E734:') call assert_fails('let b[1:1] .= 0z55', 'E734:') + + let l = [0z12] + let m = deepcopy(l) + let m[0] = 0z34 " E742 or E741 should not occur. endfunc func Test_blob_get_range() |