diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-06 18:22:53 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-06 18:22:53 +0200 |
commit | ad30470610e228e66afb837fdbab6bea36c43de4 (patch) | |
tree | b9b223fc5737b25bc9906f81003aa10f757054ef /src/evalfunc.c | |
parent | 707be5f3524accb8b36e80bd2532e00b8246df55 (diff) |
patch 8.2.1627: Vim9: cannot pass "true" to submatch/term_gettty/term_startv8.2.1627
Problem: Vim9: cannot pass "true" to submatch(), term_gettty() and
term_start()
Solution: Use tv_get_bool_chk(). (closes #6888, closes #6890, closes #6889)
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index e7683fc3dc..e69f2939f9 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -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; |