0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 7.4.2298

Problem:    It is not possible to close the "in" part of a channel.
Solution:   Add ch_close_in().
This commit is contained in:
Bram Moolenaar
2016-09-01 15:11:51 +02:00
parent d8b554904d
commit 0874a83e9b
7 changed files with 66 additions and 10 deletions

View File

@@ -2735,6 +2735,15 @@ channel_close(channel_T *channel, int invoke_close_cb)
channel->ch_nb_close_cb = NULL;
}
/*
* 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".
*/