diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-11-29 02:17:16 +0100 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-11-29 03:57:23 +0100 |
commit | a0e9ef09d7af8274c754ca6c368ef4a6f7411510 (patch) | |
tree | 79570114b6a038c79f9277f982b046f96c6f9e38 /test/functional/ui/decorations_spec.lua | |
parent | 8868ecd401f6a45d005fe68c57fbba79d32af192 (diff) | |
download | rneovim-a0e9ef09d7af8274c754ca6c368ef4a6f7411510.tar.gz rneovim-a0e9ef09d7af8274c754ca6c368ef4a6f7411510.tar.bz2 rneovim-a0e9ef09d7af8274c754ca6c368ef4a6f7411510.zip |
fix(decorations): do not apply sign highlight id as range attr id
Diffstat (limited to 'test/functional/ui/decorations_spec.lua')
-rw-r--r-- | test/functional/ui/decorations_spec.lua | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua index 6d4937b0c0..e8fcfc46fc 100644 --- a/test/functional/ui/decorations_spec.lua +++ b/test/functional/ui/decorations_spec.lua @@ -2155,6 +2155,17 @@ describe('extmark decorations', function() | ]]} end) + + it('works with both hl_group and sign_hl_group', function() + screen:try_resize(screen._width, 3) + insert('abcdefghijklmn') + meths.buf_set_extmark(0, ns, 0, 0, {sign_text='S', sign_hl_group='NonText', hl_group='Error', end_col=14}) + screen:expect{grid=[[ + {1:S }{4:abcdefghijklm^n} | + {1:~ }| + | + ]]} + end) end) describe('decorations: inline virtual text', function() @@ -4966,7 +4977,6 @@ l5 | ]]} end) - end) describe('decorations: virt_text', function() |