Patch 8.1.1671
Problem:    Copying a blob may result in it being locked.
Solution:   Reset v_lock. (Ken Takata, closes #4648)
Files:      src/blob.c, src/testdir/test_blob.vim


*** ../vim-8.1.1670/src/blob.c  2019-05-28 23:08:12.052648779 +0200
--- src/blob.c  2019-07-12 20:13:14.829133166 +0200
***************
*** 63,68 ****
--- 63,69 ----
      int           ret = OK;
  
      to->v_type = VAR_BLOB;
+     to->v_lock = 0;
      if (from->vval.v_blob == NULL)
        to->vval.v_blob = NULL;
      else if (rettv_blob_alloc(to) == FAIL)
*** ../vim-8.1.1670/src/testdir/test_blob.vim   2019-01-24 12:31:40.756926525 
+0100
--- src/testdir/test_blob.vim   2019-07-12 20:14:37.652665088 +0200
***************
*** 71,76 ****
--- 71,80 ----
    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()
*** ../vim-8.1.1670/src/version.c       2019-07-12 19:22:19.463117807 +0200
--- src/version.c       2019-07-12 20:14:56.316559771 +0200
***************
*** 779,780 ****
--- 779,782 ----
  {   /* Add new patch number below this line */
+ /**/
+     1671,
  /**/

-- 
There are three kinds of people: Those who can count & those who can't.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/201907121817.x6CIHK3Z017275%40masaka.moolenaar.net.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui