From 906ad04dddff7046bcd61a89455a4ff288be0838 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 16 Feb 2025 22:54:32 +0800 Subject: fix(marks): handle composing in inline virt_text with 'nowrap' (#32477) --- test/functional/ui/decorations_spec.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test') diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index fb2e6ea65f..2f83e7b97a 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -3379,59 +3379,59 @@ describe('decorations: inline virtual text', function() insert('12345678') command('set nowrap') api.nvim_buf_set_extmark(0, ns, 0, 2, { - virt_text = { { 'αβγ口=', 'Special' }, { '口', 'Special' } }, + virt_text = { { 'αβ̳γ̲口=', 'Special' }, { '❤️', 'Special' } }, virt_text_pos = 'inline', }) screen:expect([[ - 12{10:αβγ口=口}34567^8 | + 12{10:αβ̳γ̲口=❤️}34567^8 | {1:~ }| | ]]) feed('zl') screen:expect([[ - 2{10:αβγ口=口}34567^8 | + 2{10:αβ̳γ̲口=❤️}34567^8 | {1:~ }| | ]]) feed('zl') screen:expect([[ - {10:αβγ口=口}34567^8 | + {10:αβ̳γ̲口=❤️}34567^8 | {1:~ }| | ]]) feed('zl') screen:expect([[ - {10:βγ口=口}34567^8 | + {10:β̳γ̲口=❤️}34567^8 | {1:~ }| | ]]) feed('zl') screen:expect([[ - {10:γ口=口}34567^8 | + {10:γ̲口=❤️}34567^8 | {1:~ }| | ]]) feed('zl') screen:expect([[ - {10:口=口}34567^8 | + {10:口=❤️}34567^8 | {1:~ }| | ]]) feed('zl') screen:expect([[ - {10: =口}34567^8 | + {10: =❤️}34567^8 | {1:~ }| | ]]) feed('zl') screen:expect([[ - {10:=口}34567^8 | + {10:=❤️}34567^8 | {1:~ }| | ]]) feed('zl') screen:expect([[ - {10:口}34567^8 | + {10:❤️}34567^8 | {1:~ }| | ]]) -- cgit