1
0
forked from aniani/vim

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

@@ -5768,7 +5768,7 @@ f_term_gettty(typval_T *argvars, typval_T *rettv)
if (buf == NULL)
return;
if (argvars[1].v_type != VAR_UNKNOWN)
num = tv_get_number(&argvars[1]);
num = tv_get_bool(&argvars[1]);
switch (num)
{