diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-06-22 15:37:32 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-22 15:37:32 +0800 |
commit | a41883bfbea990c9f8b29060b21580139970afc1 (patch) | |
tree | 2307ef0909d76ee6c9eb377d8182964c605ddb9d /test/functional/ui | |
parent | 43e76cc3462bc5bcf2b6ade8af1c36e21d3da3c9 (diff) | |
parent | a9cd8467cbd54035e7814b862054c828467c2ce2 (diff) | |
download | rneovim-a41883bfbea990c9f8b29060b21580139970afc1.tar.gz rneovim-a41883bfbea990c9f8b29060b21580139970afc1.tar.bz2 rneovim-a41883bfbea990c9f8b29060b21580139970afc1.zip |
Merge pull request #24098 from zeertzjq/fix-extmark
Fix two extmark bugs
Diffstat (limited to 'test/functional/ui')
-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| |