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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user