aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/decorations_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-11-01 22:53:22 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2021-11-01 22:57:33 +0100
commit995dbd2ca6c112dc745f226690a99d79b9dc51c9 (patch)
tree0e3edc2c677273a56a2f98d437f954c381dbde0a /test/functional/ui/decorations_spec.lua
parentb8eabb37b1d4e267a4db7e639e8cbdec2ed64b8e (diff)
downloadrneovim-995dbd2ca6c112dc745f226690a99d79b9dc51c9.tar.gz
rneovim-995dbd2ca6c112dc745f226690a99d79b9dc51c9.tar.bz2
rneovim-995dbd2ca6c112dc745f226690a99d79b9dc51c9.zip
fix(extmark): fix missing virt_lines when using id param of set_extmark
Diffstat (limited to 'test/functional/ui/decorations_spec.lua')
-rw-r--r--test/functional/ui/decorations_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua
index 40c33d9a4d..dce6384b9b 100644
--- a/test/functional/ui/decorations_spec.lua
+++ b/test/functional/ui/decorations_spec.lua
@@ -992,7 +992,7 @@ if (h->n_buckets < new_n_buckets) { // expand
]]}
end)
- it('works with text et the end of the buffer', function()
+ it('works with text at the end of the buffer', function()
insert(example_text)
feed 'G'
@@ -1213,7 +1213,7 @@ if (h->n_buckets < new_n_buckets) { // expand
|
]]}
- meths.buf_set_extmark(0, ns, 2, 0, {
+ local markid = meths.buf_set_extmark(0, ns, 2, 0, {
virt_lines={
{{"Some special", "Special"}};
{{"remark about codes", "Comment"}};
@@ -1235,13 +1235,13 @@ if (h->n_buckets < new_n_buckets) { // expand
|
]]}
- meths.buf_clear_namespace(0, ns, 0, -1)
meths.buf_set_extmark(0, ns, 2, 0, {
virt_lines={
{{"Some special", "Special"}};
{{"remark about codes", "Comment"}};
};
virt_lines_leftcol=true;
+ id=markid;
})
screen:expect{grid=[[
{8: }{9: 1 }^if (h->n_buckets < new_n_buckets) { // expan|