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

patch 8.2.1627: Vim9: cannot pass "true" to submatch/term_gettty/term_start

Problem:    Vim9: cannot pass "true" to submatch(), term_gettty() and
            term_start()
Solution:   Use tv_get_bool_chk(). (closes #6888, closes #6890, closes #6889)
This commit is contained in:
Bram Moolenaar
2020-09-06 18:22:53 +02:00
parent 707be5f352
commit ad30470610
5 changed files with 28 additions and 3 deletions

View File

@@ -8400,7 +8400,7 @@ f_submatch(typval_T *argvars, typval_T *rettv)
return;
}
if (argvars[1].v_type != VAR_UNKNOWN)
retList = (int)tv_get_number_chk(&argvars[1], &error);
retList = (int)tv_get_bool_chk(&argvars[1], &error);
if (error)
return;