aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-11 18:18:38 +0800
committerGitHub <noreply@github.com>2022-11-11 18:18:38 +0800
commit0d7cc5ee85c2722ab68e276a2bfda336ef9429d5 (patch)
tree1f572e94cd7d1fd1630d708e05bd1489c4f3db50
parent0d8e8d36ec7d3f4967f27389b4b94edf3ba57433 (diff)
downloadrneovim-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.vim2
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()