diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-22 13:41:13 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-06-22 15:04:46 +0800 |
commit | 0534ad8ca57bafa76769f49935a6cb00709d155b (patch) | |
tree | 20139c5ad014072587980b4cbc9e1c40011c27dd /test | |
parent | 08db61b19b8fa07131fdcbea306893539963d4cb (diff) | |
download | rneovim-0534ad8ca57bafa76769f49935a6cb00709d155b.tar.gz rneovim-0534ad8ca57bafa76769f49935a6cb00709d155b.tar.bz2 rneovim-0534ad8ca57bafa76769f49935a6cb00709d155b.zip |
fix(extmarks): empty inline virt_text interfering with Visual highlight
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index 91fbbe2579..0f118b621c 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -1675,9 +1675,11 @@ describe('decorations: inline virtual text', function() | ]]} + meths.buf_set_extmark(0, ns, 0, 5, {virt_text={{''}, {''}}, virt_text_pos='inline'}) meths.buf_set_extmark(0, ns, 1, 14, {virt_text={{''}, {': ', 'Special'}, {'string', 'Type'}}, virt_text_pos='inline'}) + feed('V') screen:expect{grid=[[ - ^for _,item in ipairs(items) do | + ^f{7:or _,item in ipairs(items) do} | local text{10:: }{3:string}, hl_id_cell, count = unpack| (item) | if hl_id_cell ~= nil then | @@ -1686,10 +1688,10 @@ describe('decorations: inline virtual text', function() for _ = 1, (count or 1) do | local cell = line[colpos] | cell.text = text | - | + {8:-- VISUAL LINE --} | ]]} - feed('jf,') + feed('<Esc>jf,') screen:expect{grid=[[ for _,item in ipairs(items) do | local text{10:: }{3:string}^, hl_id_cell, count = unpack| |