summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-28 11:24:49 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-28 11:24:49 +0000
commit8b6256f6ec075cca40341e61ebc9f538b4902dd1 (patch)
treea59ebf29d7fe303e3bf2f985c89af994dfd5abc0 /runtime
parentbe4e223eadaa765bf2957f196e4d4b6014057bd1 (diff)
patch 8.2.3919: Vim9: wrong argument for append() results in two errorsv8.2.3919
Problem: Vim9: wrong argument for append() results in two errors. Solution: Check did_emsg. Also for setline(). Adjust the help for appendbufline().
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/builtin.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 8855dd0a35..cf48b4d989 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -806,9 +806,10 @@ appendbufline({buf}, {lnum}, {text}) *appendbufline()*
For the use of {buf}, see |bufname()|.
- {lnum} is used like with |append()|. Note that using |line()|
- would use the current buffer, not the one appending to.
- Use "$" to append at the end of the buffer.
+ {lnum} is the line number to append below. Note that using
+ |line()| would use the current buffer, not the one appending
+ to. Use "$" to append at the end of the buffer. Other string
+ values are not supported.
On success 0 is returned, on failure 1 is returned.
In |Vim9| script an error is given for an invalid {lnum}.