summaryrefslogtreecommitdiff
path: root/src/proto/channel.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-07-07 20:45:06 +0200
committerBram Moolenaar <Bram@vim.org>2016-07-07 20:45:06 +0200
commitbf2cc5f36d5ffd5de445e6970602000c7869b65a (patch)
tree5f781b03b478365b69a33b8a37d1bc39b5456c15 /src/proto/channel.pro
parentdcb170018642ec144cd87d9d9fe076575b8d1263 (diff)
downloadvim-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.pro2
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);