aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2015-02-28 13:39:26 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2015-03-03 20:18:24 +0100
commit5be040ffe4499b6b924f810b5a30c54307a9cf38 (patch)
tree40761f1b54276aa522429bf80dc6d4e0c3c1b126 /runtime
parent6b7ece6cc89aa35f99d6bd3c078114a7a8a2daa1 (diff)
downloadrneovim-5be040ffe4499b6b924f810b5a30c54307a9cf38.tar.gz
rneovim-5be040ffe4499b6b924f810b5a30c54307a9cf38.tar.bz2
rneovim-5be040ffe4499b6b924f810b5a30c54307a9cf38.zip
jobsend: Don't append extra newline after last item
This allows sending binary data that is not newline terminated
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/eval.txt5
1 files changed, 3 insertions, 2 deletions
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 "abc<NL>123<NUL>456<NL>".
jobstart({name}, {prog}[, {argv}]) {Nvim} *jobstart()*