diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-01 15:11:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-01 15:11:51 +0200 |
commit | 0874a83e9be1b39fdb217f02b427bf1d6133a4d8 (patch) | |
tree | 7d949e2638d0fd36cf55cb2edfa70cba9638de3f /runtime/doc/channel.txt | |
parent | d8b554904d18fe19bd9fa79dbda880845cb017d2 (diff) | |
download | vim-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 'runtime/doc/channel.txt')
-rw-r--r-- | runtime/doc/channel.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt index c5189727c..1f23042ae 100644 --- a/runtime/doc/channel.txt +++ b/runtime/doc/channel.txt @@ -1,4 +1,4 @@ -*channel.txt* For Vim version 7.4. Last change: 2016 Aug 31 +*channel.txt* For Vim version 7.4. Last change: 2016 Sep 01 VIM REFERENCE MANUAL by Bram Moolenaar @@ -501,6 +501,10 @@ A special mode is when "in_top" is set to zero and "in_bot" is not set: Every time a line is added to the buffer, the last-but-one line will be send to the job stdin. This allows for editing the last line and sending it when pressing Enter. + *channel-close-in* +When not using the special mode the pipe or socket will be closed after the +last line has been written. This signals the reading end that the input +finished. You can also use |ch_close_in()| to close it sooner. NUL bytes in the text will be passed to the job (internally Vim stores these as NL bytes). |