fixup! fixup! feat(jobs): jobstart(…,{term:true}), deprecate termopen()

This commit is contained in:
Justin M. Keyes 2024-12-18 16:28:55 +01:00
parent f7890bb005
commit e340b4e113
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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 })")