aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/channel.c')
-rw-r--r--src/nvim/channel.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nvim/channel.c b/src/nvim/channel.c
index 3a45a8aec7..104c79efd9 100644
--- a/src/nvim/channel.c
+++ b/src/nvim/channel.c
@@ -762,6 +762,14 @@ static void set_info_event(void **argv)
channel_decref(chan);
}
+bool channel_job_running(uint64_t id)
+{
+ Channel *chan = find_channel(id);
+ return (chan
+ && chan->streamtype == kChannelStreamProc
+ && !process_is_stopped(&chan->stream.proc));
+}
+
Dictionary channel_info(uint64_t id)
{
Channel *chan = find_channel(id);