mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.0.0837: append() reports failure when not appending anything
Problem: append() reports failure when not appending anything. Solution: Only report failure when appending something. (closes #11498)
This commit is contained in:
@@ -939,9 +939,13 @@ endfunc
|
||||
func Test_append()
|
||||
enew!
|
||||
split
|
||||
call append(0, ["foo"])
|
||||
call append(1, [])
|
||||
call append(1, test_null_list())
|
||||
call assert_equal(0, append(1, []))
|
||||
call assert_equal(0, append(1, test_null_list()))
|
||||
call assert_equal(0, append(0, ["foo"]))
|
||||
call assert_equal(0, append(1, []))
|
||||
call assert_equal(0, append(1, test_null_list()))
|
||||
call assert_equal(0, append(8, []))
|
||||
call assert_equal(0, append(9, test_null_list()))
|
||||
call assert_equal(['foo', ''], getline(1, '$'))
|
||||
split
|
||||
only
|
||||
|
Reference in New Issue
Block a user