commit | 0874a83e9be1b39fdb217f02b427bf1d6133a4d8 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Thu Sep 01 15:11:51 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Thu Sep 01 15:11:51 2016 +0200 |
tree | 7d949e2638d0fd36cf55cb2edfa70cba9638de3f | |
parent | d8b554904d18fe19bd9fa79dbda880845cb017d2 [diff] [blame] |
patch 7.4.2298 Problem: It is not possible to close the "in" part of a channel. Solution: Add ch_close_in().
diff --git a/src/channel.c b/src/channel.c index dbed659..bbe98be 100644 --- a/src/channel.c +++ b/src/channel.c
@@ -2736,6 +2736,15 @@ } /* + * 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