From 5be040ffe4499b6b924f810b5a30c54307a9cf38 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sat, 28 Feb 2015 13:39:26 +0100 Subject: jobsend: Don't append extra newline after last item This allows sending binary data that is not newline terminated --- runtime/doc/eval.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index c4d84c36c3..b303ad61b1 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4019,8 +4019,9 @@ jobsend({job}, {data}) {Nvim} *jobsend()* {data} may be a string, string convertible, or a list. If {data} is a list, the items will be separated by newlines and - any newlines in an item will be sent as a NUL. For example: > - :call jobsend(j, ["abc", "123\n456"]) + any newlines in an item will be sent as a NUL. A final newline + can be sent by adding a final empty string. For example: > + :call jobsend(j, ["abc", "123\n456", ""]) < will send "abc123456". jobstart({name}, {prog}[, {argv}]) {Nvim} *jobstart()* -- cgit