From c51cf0329809c7ae946c59d6f56699227efc9d1b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 26 Feb 2022 12:25:45 +0000 Subject: Update runtime files. --- runtime/doc/channel.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/doc/channel.txt') diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt index 6124a8945..0e95cd233 100644 --- a/runtime/doc/channel.txt +++ b/runtime/doc/channel.txt @@ -91,7 +91,7 @@ And you should see the message in Vim. You can move the cursor a word forward: To handle asynchronous communication a callback needs to be used: > func MyHandler(channel, msg) - echo "from the handler: " . a:msg + echo "from the handler: " .. a:msg endfunc call ch_sendexpr(channel, 'hello!', {'callback': "MyHandler"}) Vim will not wait for a response. Now the server can send the response later @@ -136,7 +136,7 @@ When using an IPv6 address, enclose it within square brackets. E.g., gets two arguments: the channel and the received message. Example: > func Handle(channel, msg) - echo 'Received: ' . a:msg + echo 'Received: ' .. a:msg endfunc let channel = ch_open("localhost:8765", {"callback": "Handle"}) < @@ -1296,7 +1296,7 @@ prompt. > " Function handling output from the shell: Added above the prompt. func GotOutput(channel, msg) - call append(line("$") - 1, "- " . a:msg) + call append(line("$") - 1, "- " .. a:msg) endfunc " Function handling the shell exist: close the window. -- cgit v1.2.1