commit 89ff05b258f9d5663b4659e9023ff83004021ce6
parent 4ce20f722943708ae16a80442e62edf58717901b
Author: zeertzjq <zeertzjq@outlook.com>
Date: Fri, 14 Apr 2023 13:01:50 +0800
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:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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);