aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/decorations_spec.lua
diff options
context:
space:
mode:
authorii14 <59243201+ii14@users.noreply.github.com>2022-06-19 19:33:54 +0200
committerGitHub <noreply@github.com>2022-06-19 10:33:54 -0700
commita195dc7c83b3da16e293ddb468ef18254957b4a4 (patch)
tree80c932c5bcb8239c60a64cec02e353b50ba8db09 /test/functional/ui/decorations_spec.lua
parent837ea6da9f65ac4ec85421c6e4af15194cc222d0 (diff)
downloadrneovim-a195dc7c83b3da16e293ddb468ef18254957b4a4.tar.gz
rneovim-a195dc7c83b3da16e293ddb468ef18254957b4a4.tar.bz2
rneovim-a195dc7c83b3da16e293ddb468ef18254957b4a4.zip
fix(decorations): nvim_buf_set_extmark breaks conceal #19010
Closes #19007 Co-authored-by: bfredl <bjorn.linse@gmail.com> Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
Diffstat (limited to 'test/functional/ui/decorations_spec.lua')
-rw-r--r--test/functional/ui/decorations_spec.lua15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua
index cf4845474f..9af5d386db 100644
--- a/test/functional/ui/decorations_spec.lua
+++ b/test/functional/ui/decorations_spec.lua
@@ -483,6 +483,7 @@ describe('extmark decorations', function()
[23] = {foreground = Screen.colors.Magenta1, background = Screen.colors.LightGrey};
[24] = {bold = true};
[25] = {background = Screen.colors.LightRed};
+ [26] = {background=Screen.colors.DarkGrey, foreground=Screen.colors.LightGrey};
}
ns = meths.create_namespace 'test'
@@ -864,6 +865,20 @@ end]]
]]}
helpers.assert_alive()
end)
+
+ it('conceal #19007', function()
+ screen:try_resize(50, 5)
+ insert('foo\n')
+ command('let &conceallevel=2')
+ meths.buf_set_extmark(0, ns, 0, 0, {end_col=0, end_row=2, conceal='X'})
+ screen:expect([[
+ {26:X} |
+ ^ |
+ {1:~ }|
+ {1:~ }|
+ |
+ ]])
+ end)
end)
describe('decorations: virtual lines', function()