Mercurial > vim
comparison src/channel.c @ 10054:d4b7232fc63a v7.4.2298
commit https://github.com/vim/vim/commit/0874a83e9be1b39fdb217f02b427bf1d6133a4d8
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 1 15:11:51 2016 +0200
patch 7.4.2298
Problem: It is not possible to close the "in" part of a channel.
Solution: Add ch_close_in().
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 01 Sep 2016 15:15:08 +0200 |
parents | c1ba49441c90 |
children | 90b9898d05a6 |
comparison
equal
deleted
inserted
replaced
10053:ce81fd2d3556 | 10054:d4b7232fc63a |
---|---|
2734 | 2734 |
2735 channel->ch_nb_close_cb = NULL; | 2735 channel->ch_nb_close_cb = NULL; |
2736 } | 2736 } |
2737 | 2737 |
2738 /* | 2738 /* |
2739 * Close the "in" part channel "channel". | |
2740 */ | |
2741 void | |
2742 channel_close_in(channel_T *channel) | |
2743 { | |
2744 may_close_part(&channel->CH_IN_FD); | |
2745 } | |
2746 | |
2747 /* | |
2739 * Clear the read buffer on "channel"/"part". | 2748 * Clear the read buffer on "channel"/"part". |
2740 */ | 2749 */ |
2741 static void | 2750 static void |
2742 channel_clear_one(channel_T *channel, int part) | 2751 channel_clear_one(channel_T *channel, int part) |
2743 { | 2752 { |