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:
Billy Su
2020-01-20 20:06:38 +08:00
parent 270cd623ef
commit 041ec8997a
3 changed files with 16 additions and 6 deletions

View File

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