0
0
mirror of https://github.com/vim/vim.git synced 2025-10-04 05:25:06 -04:00

patch 8.2.2301: Vim9: cannot unlet a dict or list item

Problem:    Vim9: cannot unlet a dict or list item.
Solution:   Add ISN_UNLETINDEX.  Refactor assignment code to use for unlet.
This commit is contained in:
Bram Moolenaar
2021-01-04 21:57:11 +01:00
parent d62d87d8f3
commit 752fc692ac
5 changed files with 689 additions and 437 deletions

View File

@@ -60,6 +60,7 @@ typedef enum {
ISN_UNLET, // unlet variable isn_arg.unlet.ul_name
ISN_UNLETENV, // unlet environment variable isn_arg.unlet.ul_name
ISN_UNLETINDEX, // unlet item of list or dict
ISN_LOCKCONST, // lock constant value