Merge pull request #9121 from bfredl/virt_invalid

API: make nvim_buf_set_virtual_text handle invalid chars
This commit is contained in:
Björn Linse
2018-10-13 20:15:28 +02:00
committed by GitHub
2 changed files with 18 additions and 2 deletions

View File

@@ -413,5 +413,16 @@ describe('Buffer highlighting', function()
|
]])
set_virtual_text(0, 0, {{"x\tx\ny\ry", "Statement"}, {"aa\000bb", "Number"}}, {})
screen:expect([[
1 + 2 {3:x^Ix^@y^My}{2:aa} |
^5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5|
, 5, 5, 5, 5, 5, 5,{1:-} |
x = 4 |
{1:~ }|
{1:~ }|
{1:~ }|
|
]])
end)
end)