aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/decorations_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/ui/decorations_spec.lua')
-rw-r--r--test/functional/ui/decorations_spec.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua
index be0f41ef6b..d78d7d06cc 100644
--- a/test/functional/ui/decorations_spec.lua
+++ b/test/functional/ui/decorations_spec.lua
@@ -762,6 +762,8 @@ describe('extmark decorations', function()
[39] = {foreground = Screen.colors.Blue1, background = Screen.colors.LightCyan1, bold = true};
[40] = {reverse = true};
[41] = {bold = true, reverse = true};
+ [42] = {undercurl = true, special = Screen.colors.Red};
+ [43] = {background = Screen.colors.Yellow, undercurl = true, special = Screen.colors.Red};
}
ns = meths.create_namespace 'test'
@@ -1904,6 +1906,23 @@ describe('extmark decorations', function()
]])
end)
+ it('highlight works properly with multibyte text and spell #26771', function()
+ insert('口口\n')
+ screen:try_resize(50, 3)
+ meths.buf_set_extmark(0, ns, 0, 0, { end_col = 3, hl_group = 'Search' })
+ screen:expect([[
+ {34:口}口 |
+ ^ |
+ |
+ ]])
+ command('setlocal spell')
+ screen:expect([[
+ {43:口}{42:口} |
+ ^ |
+ |
+ ]])
+ end)
+
it('supports multiline highlights', function()
insert(example_text)
feed 'gg'