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)

801cd35e7e

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq 2022-11-11 18:18:38 +08:00 committed by GitHub
parent 0d8e8d36ec
commit 0d7cc5ee85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -813,6 +813,8 @@ func Test_append()
" Using $ instead of '$' must give an error " Using $ instead of '$' must give an error
call assert_fails("call append($, 'foobar')", 'E116:') call assert_fails("call append($, 'foobar')", 'E116:')
call assert_fails("call append({}, '')", ['E728:', 'E728:'])
endfunc endfunc
" Test for setline() " Test for setline()