mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user