vim-patch:8.2.0619: null dict is not handled like an empty dict

Problem:    Null dict is not handled like an empty dict.
Solution:   Fix the code and add tests. (Yegappan Lakshmanan, closes vim/vim#5968)

ea04a6e8ba

Nvim doesn't support modifying NULL list, so comment out a line.
This commit is contained in:
zeertzjq
2022-10-26 19:53:54 +08:00
parent cfccae9584
commit ef363ed37c
10 changed files with 72 additions and 24 deletions

View File

@@ -1449,6 +1449,7 @@ char *get_lval(char *const name, typval_T *const rettv, lval_T *const lp, const
key[len] = prevval;
}
if (wrong) {
tv_clear(&var1);
return NULL;
}
}