diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 14:31:40 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-05 14:44:26 +0800 |
commit | 48405df046e6d15c26aeea429fa44950ccc1a8ac (patch) | |
tree | 5ddd340c991998302b74e46862ebdd35cd982b8e /runtime | |
parent | 5731f406fa6ddf9c8340329ec1e534cd968df94f (diff) | |
download | rneovim-48405df046e6d15c26aeea429fa44950ccc1a8ac.tar.gz rneovim-48405df046e6d15c26aeea429fa44950ccc1a8ac.tar.bz2 rneovim-48405df046e6d15c26aeea429fa44950ccc1a8ac.zip |
vim-patch:8.2.3919: Vim9: wrong argument for append() results in two errors
Problem: Vim9: wrong argument for append() results in two errors.
Solution: Check did_emsg. Also for setline(). Adjust the help for
appendbufline().
https://github.com/vim/vim/commit/8b6256f6ec075cca40341e61ebc9f538b4902dd1
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/builtin.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 2cd2eed3a1..e7e44374c6 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -654,9 +654,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. |