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.
--
--
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.