aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorLuuk van Baal <luukvbaal@gmail.com>2023-11-27 16:22:19 +0100
committerLewis Russell <me@lewisr.dev>2023-11-28 16:44:20 +0000
commit35cec0de4acd351119230330f54b0a45f9823695 (patch)
tree037df46125ccb4cae871b66147918553671c5228 /test/functional
parentadb2258345409d08c42809da0212eeb792e70106 (diff)
downloadrneovim-35cec0de4acd351119230330f54b0a45f9823695.tar.gz
rneovim-35cec0de4acd351119230330f54b0a45f9823695.tar.bz2
rneovim-35cec0de4acd351119230330f54b0a45f9823695.zip
fix(column): redraw and update signcols for paired extmark
Problem: Signcolumn width does not increase when ranged sign does not start at sentinel line. Solution: Handle paired range of added sign when checking signcols.
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/ui/decorations_spec.lua29
1 files changed, 5 insertions, 24 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua
index ef02f73960..6d4937b0c0 100644
--- a/test/functional/ui/decorations_spec.lua
+++ b/test/functional/ui/decorations_spec.lua
@@ -4718,21 +4718,19 @@ l5
{2:~ }|
|
]]}
-
end)
it('can add multiple signs (multiple extmarks) 2', function()
insert(example_test3)
feed 'gg'
- meths.buf_set_extmark(0, ns, 1, -1, {sign_text='S1'})
- meths.buf_set_extmark(0, ns, 1, -1, {sign_text='S2'})
-
+ meths.buf_set_extmark(0, ns, 3, -1, {sign_text='S1'})
+ meths.buf_set_extmark(0, ns, 1, -1, {sign_text='S2', end_row = 3})
screen:expect{grid=[[
{1: }^l1 |
- S1S2l2 |
- {1: }l3 |
- {1: }l4 |
+ S2{1: }l2 |
+ S2{1: }l3 |
+ S1S2l4 |
{1: }l5 |
{1: } |
{2:~ }|
@@ -4740,23 +4738,6 @@ l5
{2:~ }|
|
]]}
-
- -- TODO(lewis6991): Support ranged signs
- -- meths.buf_set_extmark(1, ns, 1, -1, {sign_text='S3', end_row = 2})
-
- -- screen:expect{grid=[[
- -- {1: }^l1 |
- -- S3S2S1l2 |
- -- S3{1: }l3 |
- -- {1: }l4 |
- -- {1: }l5 |
- -- {1: } |
- -- {2:~ }|
- -- {2:~ }|
- -- {2:~ }|
- -- |
- -- ]]}
-
end)
it('can add multiple signs (multiple extmarks) 3', function()