mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fixup! fixup! feat(jobs): jobstart(…,{term:true}), deprecate termopen()
This commit is contained in:
parent
f7890bb005
commit
e340b4e113
@ -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;
|
||||
}
|
||||
|
@ -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 })")
|
||||
|
Loading…
Reference in New Issue
Block a user