diff options
author | Luuk van Baal <luukvbaal@gmail.com> | 2023-03-25 02:24:24 +0100 |
---|---|---|
committer | Luuk van Baal <luukvbaal@gmail.com> | 2023-04-01 13:59:03 +0200 |
commit | 2a10f64e254375e77e1c5a6aeae3cd65cd122afb (patch) | |
tree | 5b3cc58c001d4a47de52796274dd7b2dcf51b0a8 /test/functional/ui | |
parent | 2257ade3dc2daab5ee12d27807c0b3bcf103cd29 (diff) | |
download | rneovim-2a10f64e254375e77e1c5a6aeae3cd65cd122afb.tar.gz rneovim-2a10f64e254375e77e1c5a6aeae3cd65cd122afb.tar.bz2 rneovim-2a10f64e254375e77e1c5a6aeae3cd65cd122afb.zip |
feat(extmarks): extend nvim_buf_get_extmarks()
Problem: Can not get all extmarks in a buffer. Properties are missing
from the details array.
Solution: Allow getting all extmarks in a buffer by supplying a -1
"ns_id". Add missing properties to the details array.
Diffstat (limited to 'test/functional/ui')
-rw-r--r-- | test/functional/ui/bufhl_spec.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/ui/bufhl_spec.lua b/test/functional/ui/bufhl_spec.lua index adec0770de..5263fb4c24 100644 --- a/test/functional/ui/bufhl_spec.lua +++ b/test/functional/ui/bufhl_spec.lua @@ -766,6 +766,7 @@ describe('Buffer highlighting', function() -- an existing virtual text. We might add a prioritation system. set_virtual_text(id1, 0, s1, {}) eq({{1, 0, 0, { + ns_id = 1, priority = 0, virt_text = s1, -- other details @@ -778,6 +779,7 @@ describe('Buffer highlighting', function() local lastline = line_count() set_virtual_text(id1, line_count(), s2, {}) eq({{3, lastline, 0, { + ns_id = 1, priority = 0, virt_text = s2, -- other details |