diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-09-22 17:56:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-22 17:56:05 +0800 |
commit | b7763d7f6b7fdcabe06658c664457df8bc147563 (patch) | |
tree | b85dad8a556924e09c4c4fa549e171ea634f1a75 /test/functional/ui/decorations_spec.lua | |
parent | 64e8a3c4d19eab40888fbac36b96e97bd9d68c42 (diff) | |
download | rneovim-b7763d7f6b7fdcabe06658c664457df8bc147563.tar.gz rneovim-b7763d7f6b7fdcabe06658c664457df8bc147563.tar.bz2 rneovim-b7763d7f6b7fdcabe06658c664457df8bc147563.zip |
fix(api): get virtual text with multiple hl properly (#25307)
Diffstat (limited to 'test/functional/ui/decorations_spec.lua')
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index c4fd6379f3..f378c50792 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -1464,7 +1464,7 @@ describe('extmark decorations', function() end) it('can have virtual text which combines foreground and background groups', function() - screen:try_resize(20, 3) + screen:try_resize(20, 5) screen:set_default_attr_ids { [1] = {bold=true, foreground=Screen.colors.Blue}; @@ -1494,8 +1494,11 @@ describe('extmark decorations', function() meths.buf_set_extmark(0, ns, 0, 0, { virt_text = vt, virt_text_pos = 'eol' }) meths.buf_set_extmark(0, ns, 0, 0, { virt_text = vt, virt_text_pos = 'right_align' }) meths.buf_set_extmark(0, ns, 0, 0, { virt_text = vt, virt_text_pos = 'inline' }) + meths.buf_set_extmark(0, ns, 0, 0, { virt_lines = { vt, vt } }) screen:expect{grid=[[ {2:a}{3:b}{4:c}{5:d}{6:X}#^# {2:a}{3:b}{4:c}{5:d}{6:X} {2:a}{3:b}{4:c}{5:d}{6:X}| + {2:a}{3:b}{4:c}{5:d}{6:X} | + {2:a}{3:b}{4:c}{5:d}{6:X} | {1:~ }| | ]]} |