diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-04-14 13:01:50 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-04-14 16:10:09 +0800 |
commit | 89ff05b258f9d5663b4659e9023ff83004021ce6 (patch) | |
tree | fa6a13bdc71812acd73da0f86b5b64fd4d5f6212 /src/nvim/eval.c | |
parent | 4ce20f722943708ae16a80442e62edf58717901b (diff) | |
download | rneovim-89ff05b258f9d5663b4659e9023ff83004021ce6.tar.gz rneovim-89ff05b258f9d5663b4659e9023ff83004021ce6.tar.bz2 rneovim-89ff05b258f9d5663b4659e9023ff83004021ce6.zip |
vim-patch:8.2.1069: Vim9: fail to check for white space in list
Problem: Vim9: fail to check for white space in list.
Solution: Add check for white space.
https://github.com/vim/vim/commit/e6e031739c9d0c4140e371031b58a249db0eb572
N/A patches for version.c:
vim-patch:8.2.1070: Vim9: leaking memory when lacking white space in dict
Problem: Vim9: leaking memory when lacking white space in dict.
Solution: Clear the typval.
https://github.com/vim/vim/commit/ab19d495fd880b25a38d58cbeb5b21e4d0ee5835
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 1bc343f7de..39ca70ae93 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -4003,7 +4003,7 @@ static int get_list_tv(char **arg, typval_T *rettv, evalarg_T *const evalarg) tv_list_append_owned_tv(l, tv); } - // the comma must comma after the value + // the comma must come after the value bool had_comma = **arg == ','; if (had_comma) { *arg = skipwhite(*arg + 1); |