mirror of
https://github.com/neovim/neovim.git
synced 2026-01-17 10:38:57 +10:00
Merge pull request #9121 from bfredl/virt_invalid
API: make nvim_buf_set_virtual_text handle invalid chars
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user