mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
0d8e8d36ec
commit
0d7cc5ee85
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user