diff options
-rw-r--r-- | runtime/doc/eval.txt | 11 | ||||
-rw-r--r-- | src/nvim/eval.c | 2 | ||||
-rw-r--r-- | test/functional/core/job_spec.lua | 1 |
3 files changed, 7 insertions, 7 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index f45f99ede2..06f88955c9 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -5411,7 +5411,8 @@ jobstop({id}) *jobstop()* See |job-control|. jobwait({ids}[, {timeout}]) *jobwait()* - Wait for a set of jobs to complete. + Wait for a set of jobs and their |on_exit| handlers to + complete. {ids} is a list of |job-id|s to wait for. {timeout} is the maximum waiting time in milliseconds, -1 @@ -5427,10 +5428,10 @@ jobwait({ids}[, {timeout}]) *jobwait()* Returns a list of len({ids}) integers, where each integer is the wait-result of the corresponding job. Each wait-result is one of the following: - * Exit-code, if the job exited - * -1 if the timeout was exceeded - * -2 if the job was interrupted - * -3 if the |job-id| is invalid + Exit-code, if the job exited + -1 if the timeout was exceeded + -2 if the job was interrupted (by |CTRL-C|) + -3 if the job-id is invalid join({list} [, {sep}]) *join()* Join the items in {list} together into one String. diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 683d44a245..89aaab4c4e 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -12487,7 +12487,7 @@ static void f_jobwait(typval_T *argvars, typval_T *rettv, FunPtr fptr) } // if the job already exited, but wasn't freed yet - if (jobs[i] == NULL || jobs[i]->stream.proc.status >= 0) { + if (jobs[i] == NULL) { continue; } diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index dec7c1422d..3a1be7bc52 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -607,7 +607,6 @@ describe('jobs', function() \ ]) call rpcnotify(g:channel, 'wait', sort(g:jobs), sort(g:exits)) ]]) - assert:set_parameter('TableFormatLevel', 1000000) eq({'notification', 'wait', {{3,4,5,6}, {3,4,5,6}}}, next_msg()) end) |