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

@@ -448,7 +448,7 @@ get_job_options(typval_T *tv, jobopt_T *opt, int supported, int supported2)
if (!(supported2 & JO2_CURWIN))
break;
opt->jo_set2 |= JO2_CURWIN;
opt->jo_curwin = tv_get_number(item);
opt->jo_curwin = tv_get_bool(item);
}
else if (STRCMP(hi->hi_key, "bufnr") == 0)
{