mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
job: Fix vimscript wrapper by returning when an invalid id is passed
This commit is contained in:
parent
ef4c5ccb21
commit
0fd46ae8f0
@ -10535,6 +10535,7 @@ static void f_job_write(typval_T *argvars, typval_T *rettv)
|
||||
if (!job) {
|
||||
// Invalid job id
|
||||
EMSG(_(e_invjob));
|
||||
return;
|
||||
}
|
||||
|
||||
WBuffer *buf = wstream_new_buffer(xstrdup((char *)argvars[1].vval.v_string),
|
||||
|
Loading…
Reference in New Issue
Block a user