summaryrefslogtreecommitdiff
path: root/src/channel.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-09-01 15:11:51 +0200
committerBram Moolenaar <Bram@vim.org>2016-09-01 15:11:51 +0200
commit0874a83e9be1b39fdb217f02b427bf1d6133a4d8 (patch)
tree7d949e2638d0fd36cf55cb2edfa70cba9638de3f /src/channel.c
parentd8b554904d18fe19bd9fa79dbda880845cb017d2 (diff)
downloadvim-git-0874a83e9be1b39fdb217f02b427bf1d6133a4d8.tar.gz
patch 7.4.2298v7.4.2298
Problem: It is not possible to close the "in" part of a channel. Solution: Add ch_close_in().
Diffstat (limited to 'src/channel.c')
-rw-r--r--src/channel.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/channel.c b/src/channel.c
index dbed65932..bbe98be1b 100644
--- a/src/channel.c
+++ b/src/channel.c
@@ -2736,6 +2736,15 @@ channel_close(channel_T *channel, int invoke_close_cb)
}
/*
+ * Close the "in" part channel "channel".
+ */
+ void
+channel_close_in(channel_T *channel)
+{
+ may_close_part(&channel->CH_IN_FD);
+}
+
+/*
* Clear the read buffer on "channel"/"part".
*/
static void