0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2267: Vim9: cannot use unlet for a dict member

Problem:    Vim9: cannot use unlet for a dict member.
Solution:   Pass GLV_NO_DECL to get_lval(). (closes #7585)
This commit is contained in:
Bram Moolenaar
2021-01-01 19:40:02 +01:00
parent e7a73e0762
commit c368957b19
3 changed files with 34 additions and 12 deletions

View File

@@ -1566,7 +1566,7 @@ ex_unletlock(
{
// Parse the name and find the end.
name_end = get_lval(arg, NULL, &lv, TRUE, eap->skip || error,
glv_flags, FNE_CHECK_START);
glv_flags | GLV_NO_DECL, FNE_CHECK_START);
if (lv.ll_name == NULL)
error = TRUE; // error but continue parsing
if (name_end == NULL || (!VIM_ISWHITE(*name_end)