summaryrefslogtreecommitdiffstats
path: root/runtime/doc/channel.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-26 12:25:45 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-26 12:25:45 +0000
commitc51cf0329809c7ae946c59d6f56699227efc9d1b (patch)
tree825302ef0857905dbf08dc584ef6d6a8aae27790 /runtime/doc/channel.txt
parente41c1dd8890d3f701253255993f4e9af2d12225c (diff)
Update runtime files.
Diffstat (limited to 'runtime/doc/channel.txt')
-rw-r--r--runtime/doc/channel.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/doc/channel.txt b/runtime/doc/channel.txt
index 6124a89458..0e95cd233d 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.