mirror of
https://github.com/neovim/neovim.git
synced 2026-05-05 13:35:02 +00:00
Fix f_jobstop() failed loudly
The return value of jobstop()
@return 1 for valid job id
0 for invalid id, including jobs have exited or stopped
This commit is contained in:
@@ -12706,7 +12706,7 @@ static void f_jobstop(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
return;
|
||||
}
|
||||
|
||||
Channel *data = find_job(argvars[0].vval.v_number, true);
|
||||
Channel *data = find_job(argvars[0].vval.v_number, false);
|
||||
if (!data) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user