mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 9.0.0715: wrong argument for append() gives two error messages
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 #11335)
This commit is contained in:
@@ -950,6 +950,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()
|
||||
|
Reference in New Issue
Block a user