aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2023-11-22 11:30:36 +0100
committerbfredl <bjorn.linse@gmail.com>2023-11-22 11:41:47 +0100
commitfba17d5b882e2903ba7a40eabc6f557e3cf24658 (patch)
tree7e06eb69dc6829c0534533276a3326674298629f /test
parent2e722da44d3807698374043ecdd9952bd0772a40 (diff)
downloadrneovim-fba17d5b882e2903ba7a40eabc6f557e3cf24658.tar.gz
rneovim-fba17d5b882e2903ba7a40eabc6f557e3cf24658.tar.bz2
rneovim-fba17d5b882e2903ba7a40eabc6f557e3cf24658.zip
fix(decorations): fix imbalanced sign count
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/decorations_spec.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua
index 59a41a6de6..9853f05cf2 100644
--- a/test/functional/ui/decorations_spec.lua
+++ b/test/functional/ui/decorations_spec.lua
@@ -4628,6 +4628,27 @@ l5
end)
+ it('can add a single sign and text highlight', function()
+ insert(example_test3)
+ feed 'gg'
+
+ meths.buf_set_extmark(0, ns, 1, 0, {sign_text='S', hl_group='Todo', end_col=1})
+ screen:expect{grid=[[
+ {1: }^l1 |
+ S {3:l}2 |
+ {1: }l3 |
+ {1: }l4 |
+ {1: }l5 |
+ {1: } |
+ {2:~ }|
+ {2:~ }|
+ {2:~ }|
+ |
+ ]]}
+
+ meths.buf_clear_namespace(0, ns, 0, -1)
+ end)
+
it('can add multiple signs (single extmark)', function()
insert(example_test3)
feed 'gg'