summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-29 21:54:44 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-29 21:54:44 +0100
commit4b785f69c0616dba5d3f38e8ce4b5398cec89407 (patch)
treefea8b654714ff391135ce61da9c9d0792b7a5265 /src/channel.c
parentf422bcc7f9615fe91fa69b059cfe4785093d3d4a (diff)
downloadvim-git-4b785f69c0616dba5d3f38e8ce4b5398cec89407.tar.gz
patch 8.0.0105v8.0.0105
Problem: When using ch_read() with zero timeout, can't tell the difference between reading an empty line and nothing available. Solution: Add ch_canread().
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/channel.c b/src/channel.c
index 6c5a4ff1d..e5f28003e 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2603,7 +2603,7 @@ channel_is_open(channel_T *channel)
/*
* Return TRUE if "channel" has JSON or other typeahead.
*/
- static int
+ int
channel_has_readahead(channel_T *channel, ch_part_T part)
{
ch_mode_T ch_mode = channel->ch_part[part].ch_mode;