diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 19:53:54 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-10-26 20:53:39 +0800 |
commit | ef363ed37cdf5c460cca840aebc825011e0294ee (patch) | |
tree | 89c7ba09fdc61ce8a526a3da9feac1c7324e97b0 /src/nvim/eval.c | |
parent | cfccae95844db21aad773c9a8f8b636f53d6c8c4 (diff) | |
download | rneovim-ef363ed37cdf5c460cca840aebc825011e0294ee.tar.gz rneovim-ef363ed37cdf5c460cca840aebc825011e0294ee.tar.bz2 rneovim-ef363ed37cdf5c460cca840aebc825011e0294ee.zip |
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)
https://github.com/vim/vim/commit/ea04a6e8baff2f27da7cdd54bf70a5525994f76d
Nvim doesn't support modifying NULL list, so comment out a line.
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 69bc26b82e..ffbe66aa25 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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; } } |