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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user