From e340b4e113e0e3d82c228ba9f4cd4520f2c58c0d Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 18 Dec 2024 16:28:55 +0100 Subject: [PATCH] =?UTF-8?q?fixup!=20fixup!=20feat(jobs):=20jobstart(?= =?UTF-8?q?=E2=80=A6,{term:true}),=20deprecate=20termopen()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/nvim/eval/funcs.c | 2 +- test/functional/core/job_spec.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nvim/eval/funcs.c b/src/nvim/eval/funcs.c index b36fd15516..bff1c11540 100644 --- a/src/nvim/eval/funcs.c +++ b/src/nvim/eval/funcs.c @@ -3995,7 +3995,7 @@ void f_jobstart(typval_T *argvars, typval_T *rettv, EvalFuncData fptr) dictitem_T *const job_term = tv_dict_find(job_opts, S_LEN("term")); if (job_term && VAR_BOOL != job_term->di_tv.v_type) { // Restrict "term" field to boolean, in case we want to allow buffer numbers in the future. - semsg(_(e_invarg2), "'term' must Boolean"); + semsg(_(e_invarg2), "'term' must be Boolean"); shell_free_argv(argv); return; } diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index 7820ee7e1e..c99b5cb15a 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -79,11 +79,11 @@ describe('jobs', function() pcall_err(command, "let j = jobstart(['cat', '-'], { 'cwd': 'bogusssssss/bogus' })") ) matches( - "E475: Invalid argument: 'term' must Boolean", + "E475: Invalid argument: 'term' must be Boolean", pcall_err(command, "let j = jobstart(['cat', '-'], { 'term': 'bogus' })") ) matches( - "E475: Invalid argument: 'term' must Boolean", + "E475: Invalid argument: 'term' must be Boolean", pcall_err(command, "let j = jobstart(['cat', '-'], { 'term': 1 })") ) command("let j = jobstart(['cat', '-'], { 'term': v:true })")