diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-07 20:45:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-07 20:45:06 +0200 |
commit | bf2cc5f36d5ffd5de445e6970602000c7869b65a (patch) | |
tree | 5f781b03b478365b69a33b8a37d1bc39b5456c15 /src/proto/channel.pro | |
parent | dcb170018642ec144cd87d9d9fe076575b8d1263 (diff) | |
download | vim-bf2cc5f36d5ffd5de445e6970602000c7869b65a.zip |
patch 7.4.1998
Problem: When writing buffer lines to a job there is no NL to NUL
conversion.
Solution: Make it work symmetrical with writing lines from a job into a
buffer.
Diffstat (limited to 'src/proto/channel.pro')
-rw-r--r-- | src/proto/channel.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/channel.pro b/src/proto/channel.pro index 8a059a3a9..1acae9a10 100644 --- a/src/proto/channel.pro +++ b/src/proto/channel.pro @@ -34,7 +34,7 @@ int channel_read_json_block(channel_T *channel, int part, int timeout_arg, int i void common_channel_read(typval_T *argvars, typval_T *rettv, int raw); channel_T *channel_fd2channel(sock_T fd, int *partp); void channel_handle_events(void); -int channel_send(channel_T *channel, int part, char_u *buf, char *fun); +int channel_send(channel_T *channel, int part, char_u *buf, int len, char *fun); channel_T *send_common(typval_T *argvars, char_u *text, int id, int eval, jobopt_T *opt, char *fun, int *part_read); void ch_expr_common(typval_T *argvars, typval_T *rettv, int eval); void ch_raw_common(typval_T *argvars, typval_T *rettv, int eval); |