neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 0d7cc5ee85c2722ab68e276a2bfda336ef9429d5
parent 0d8e8d36ec7d3f4967f27389b4b94edf3ba57433
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri, 11 Nov 2022 18:18:38 +0800

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>
Diffstat:
Msrc/nvim/testdir/test_functions.vim | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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()