commit | 119f5572306c4abba91eaf446c0c52637db223e8 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Sep 02 21:31:22 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Sep 02 21:31:22 2020 +0200 |
tree | f927e1a1119ef2a22a6fc51c54ad0113d08741f9 | |
parent | 9d8bfae50fdaf5f5ec6307c60ebd1fad0927c6be [diff] [blame] |
patch 8.2.1571: Vim9: count() third argument cannot be "true" Problem: Vim9: count() third argument cannot be "true". Solution: use tv_get_bool_chk(). (closes #6818)
diff --git a/src/list.c b/src/list.c index e7d288a..e0c8c2e 100644 --- a/src/list.c +++ b/src/list.c
@@ -2167,7 +2167,7 @@ int error = FALSE; if (argvars[2].v_type != VAR_UNKNOWN) - ic = (int)tv_get_number_chk(&argvars[2], &error); + ic = (int)tv_get_bool_chk(&argvars[2], &error); if (argvars[0].v_type == VAR_STRING) {