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/job.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/job.c')
-rw-r--r-- | src/job.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |