diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2015-02-28 13:39:26 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2015-03-03 20:18:24 +0100 |
commit | 5be040ffe4499b6b924f810b5a30c54307a9cf38 (patch) | |
tree | 40761f1b54276aa522429bf80dc6d4e0c3c1b126 /runtime | |
parent | 6b7ece6cc89aa35f99d6bd3c078114a7a8a2daa1 (diff) | |
download | rneovim-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.txt | 5 |
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()* |