forked from aniani/vim
patch 8.2.3855: illegal memory access when displaying a blob
Problem: Illegal memory access when displaying a blob. Solution: Append a NUL at the end. (Yegappan Lakshmanan, closes #9372)
This commit is contained in:
committed by
Bram Moolenaar
parent
86b3ab4fa0
commit
bc404bfb32
@@ -341,7 +341,7 @@ endfunc
|
||||
func Test_echo_string_partial()
|
||||
function CountSpaces()
|
||||
endfunction
|
||||
echomsg function('CountSpaces', [#{aaaaaaaaaaa: v:false, bbbbbbbbbbbb: '', ccccccccccc: ['ab', 'cd']}])
|
||||
call assert_equal("function('CountSpaces', [{'ccccccccccc': ['ab', 'cd'], 'aaaaaaaaaaa': v:false, 'bbbbbbbbbbbb': ''}])", string(function('CountSpaces', [#{aaaaaaaaaaa: v:false, bbbbbbbbbbbb: '', ccccccccccc: ['ab', 'cd']}])))
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
||||
Reference in New Issue
Block a user