0
0
mirror of https://github.com/vim/vim.git synced 2025-10-13 06:54:15 -04:00

patch 8.2.1610: Vim9: cannot pass "true" to list2str() and str2list()

Problem:    Vim9: cannot pass "true" to list2str() and str2list().
Solution:   Use tv_get_bool_chk(). (closes #6877)
This commit is contained in:
Bram Moolenaar
2020-09-05 20:16:57 +02:00
parent 7918238528
commit a48f786787
4 changed files with 11 additions and 2 deletions

View File

@@ -7982,7 +7982,7 @@ f_str2list(typval_T *argvars, typval_T *rettv)
return;
if (argvars[1].v_type != VAR_UNKNOWN)
utf8 = (int)tv_get_number_chk(&argvars[1], NULL);
utf8 = (int)tv_get_bool_chk(&argvars[1], NULL);
p = tv_get_string(&argvars[0]);