aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-10-23 16:54:49 +0200
committerGitHub <noreply@github.com>2021-10-23 16:54:49 +0200
commitfa4b24072e13dc7303e896701f0bb6d0227caf0c (patch)
treecc0a7302e1efd5706cb25c2c29af80fe3a7ab46e /test/functional
parentcb15055c294e6ebb9b2a65041cbff0a79cd3e69e (diff)
parent8d7816cf27c4ab08d9eff9e7ce3c541105c30ece (diff)
downloadrneovim-fa4b24072e13dc7303e896701f0bb6d0227caf0c.tar.gz
rneovim-fa4b24072e13dc7303e896701f0bb6d0227caf0c.tar.bz2
rneovim-fa4b24072e13dc7303e896701f0bb6d0227caf0c.zip
Merge pull request #16029 from bfredl/multiline
feat(decorations): support more than one virt_lines block
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/ui/decorations_spec.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/ui/decorations_spec.lua b/test/functional/ui/decorations_spec.lua
index 8074f91215..40c33d9a4d 100644
--- a/test/functional/ui/decorations_spec.lua
+++ b/test/functional/ui/decorations_spec.lua
@@ -901,15 +901,15 @@ if (h->n_buckets < new_n_buckets) { // expand
screen:expect{grid=[[
if (h->n_buckets < new_n_buckets) { // expand |
khkey_t *new_keys = (khkey_t *) |
+ {1:>> }{2:krealloc}: change the size of an allocation |
{3:krealloc}((void *)h->keys, new_n_buckets * sizeof(k|
hkey_t)); |
h->keys = new_keys; |
if (kh_is_map && val_size) { |
- char *new_vals = {3:krealloc}( h->vals_buf, new_n_|
- buck^ets * val_size); |
+ ^char *new_vals = {3:krealloc}( h->vals_buf, new_n_|
+ buckets * val_size); |
{5:^^ REVIEW:}{6: new_vals variable seems unneccesary?} |
h->vals_buf = new_vals; |
- } |
|
]]}
@@ -1235,6 +1235,7 @@ 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"}};