From b8b9e5ebade4d88840177154338cb99db5c7fbab Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Sat, 28 Mar 2015 11:40:25 -0300 Subject: eval: Implement `jobclose()` vimscript function --- src/nvim/os/job.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/nvim/os') diff --git a/src/nvim/os/job.c b/src/nvim/os/job.c index 7d9a91a1b2..8fe44c7a53 100644 --- a/src/nvim/os/job.c +++ b/src/nvim/os/job.c @@ -290,6 +290,18 @@ void job_close_in(Job *job) FUNC_ATTR_NONNULL_ALL close_job_in(job); } +// Close the job stdout stream. +void job_close_out(Job *job) FUNC_ATTR_NONNULL_ALL +{ + close_job_out(job); +} + +// Close the job stderr stream. +void job_close_err(Job *job) FUNC_ATTR_NONNULL_ALL +{ + close_job_out(job); +} + /// All writes that complete after calling this function will be reported /// to `cb`. /// -- cgit