1
0
forked from aniani/vim

patch 9.0.0430: cannot use repeat() with a blob

Problem:    Cannot use repeat() with a blob.
Solution:   Implement blob repeat. (closes #11090)
This commit is contained in:
Bakudankun
2022-09-09 18:46:47 +01:00
committed by Bram Moolenaar
parent 0adae2da17
commit 375141e1f8
9 changed files with 87 additions and 8 deletions

View File

@@ -2533,6 +2533,12 @@ def Test_repeat_return_type()
endfor
res->assert_equal(3)
res = 0
for n in repeat(0z01, 3)->blob2list()
res += n
endfor
res->assert_equal(3)
res = 0
for n in add([1, 2], 3)
res += n