diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-11-11 18:18:38 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 18:18:38 +0800 |
commit | 0d7cc5ee85c2722ab68e276a2bfda336ef9429d5 (patch) | |
tree | 1f572e94cd7d1fd1630d708e05bd1489c4f3db50 | |
parent | 0d8e8d36ec7d3f4967f27389b4b94edf3ba57433 (diff) | |
download | rneovim-0d7cc5ee85c2722ab68e276a2bfda336ef9429d5.tar.gz rneovim-0d7cc5ee85c2722ab68e276a2bfda336ef9429d5.tar.bz2 rneovim-0d7cc5ee85c2722ab68e276a2bfda336ef9429d5.zip |
vim-patch:9.0.0715: wrong argument for append() gives two error messages (#21023)
Problem: Wrong argument for append() gives two error messages.
Solution: When getting an error for a number argument don't try using it as
a string. (closes vim/vim#11335)
https://github.com/vim/vim/commit/801cd35e7e3b21e519e12a1610ee1d721e40893e
Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r-- | src/nvim/testdir/test_functions.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_functions.vim b/src/nvim/testdir/test_functions.vim index 0f2066b7c1..aaef01bdf5 100644 --- a/src/nvim/testdir/test_functions.vim +++ b/src/nvim/testdir/test_functions.vim @@ -813,6 +813,8 @@ func Test_append() " Using $ instead of '$' must give an error call assert_fails("call append($, 'foobar')", 'E116:') + + call assert_fails("call append({}, '')", ['E728:', 'E728:']) endfunc " Test for setline() |