aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2018-10-13 20:15:28 +0200
committerGitHub <noreply@github.com>2018-10-13 20:15:28 +0200
commit79a11ecfd39cec59701a80daaca8d718234fbb57 (patch)
treef9c826b74c6d09d124ad191727b3900b8f357ef9 /test
parent824f36a980a52f2173bce96bb911ab19460a72d0 (diff)
parent3d84cf6ff4361e318a0571c87d44e8a77c1c2839 (diff)
downloadrneovim-79a11ecfd39cec59701a80daaca8d718234fbb57.tar.gz
rneovim-79a11ecfd39cec59701a80daaca8d718234fbb57.tar.bz2
rneovim-79a11ecfd39cec59701a80daaca8d718234fbb57.zip
Merge pull request #9121 from bfredl/virt_invalid
API: make nvim_buf_set_virtual_text handle invalid chars
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/bufhl_spec.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/ui/bufhl_spec.lua b/test/functional/ui/bufhl_spec.lua
index ba3e44b677..29173ed7ee 100644
--- a/test/functional/ui/bufhl_spec.lua
+++ b/test/functional/ui/bufhl_spec.lua
@@ -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)