ZyX wrote: > 1. List item locked with lockvar may be set using slice assignment: > > let l = [1, 2, 3, 4] > lockvar! l > unlockvar l[1] > let l[0:1] = [0, 1] " ^ Reports E741 > echo l " [1, 2, 3, 4] > let l[1:2] = [0, 1] > echo l " [1, 0, 1, 4] > > 2. Same for :unlet: if the first item in the slice was not locked > :unlet may delete the whole slice even though other values in the > slice are locked.
So, what do you suggest? Do an "or" of the lock flag for all the items in the slice? -- My sister Cecilia opened a computer store in Hawaii. She sells C shells by the seashore. /// 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]. For more options, visit https://groups.google.com/d/optout.
