forked from aniani/vim
patch 8.2.1866: Vim9: appending to pushed blob gives wrong result
Problem: Vim9: appending to pushed blob gives wrong result. Solution: Set ga_maxlen when copying a blob.
This commit is contained in:
@@ -1790,6 +1790,12 @@ def Test_list_add()
|
||||
CheckDefExecFailure(lines, 'E1130:', 2)
|
||||
enddef
|
||||
|
||||
def Test_blob_add()
|
||||
var b: blob = 0z12
|
||||
add(b, 0x34)
|
||||
assert_equal(0z1234, b)
|
||||
enddef
|
||||
|
||||
def SID(): number
|
||||
return expand('<SID>')
|
||||
->matchstr('<SNR>\zs\d\+\ze_$')
|
||||
|
||||
Reference in New Issue
Block a user