diff src/channel.c @ 10240:175b1116f96a v8.0.0018

commit https://github.com/vim/vim/commit/b9c31e71f5a4653a27e81c21226039bfa35b9131 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 29 15:18:57 2016 +0200 patch 8.0.0018 Problem: When using ":sleep" channel input is not handled. Solution: When there is a channel check for input also when not in raw mode. Check every 100 msec.
author Christian Brabandt <cb@256bit.org>
date Thu, 29 Sep 2016 15:30:05 +0200
parents d709622a18c9
children 920c73a27dda
line wrap: on
line diff
--- a/src/channel.c
+++ b/src/channel.c
@@ -341,6 +341,12 @@ add_channel(void)
     return channel;
 }
 
+    int
+has_any_channel(void)
+{
+    return first_channel != NULL;
+}
+
 /*
  * Called when the refcount of a channel is zero.
  * Return TRUE if "channel" has a callback and the associated job wasn't