diff options
| author | bfredl <bjorn.linse@gmail.com> | 2022-01-21 18:02:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-21 18:02:47 +0100 |
| commit | be22cc1264ba27ed46f8ef3123c532d721478607 (patch) | |
| tree | 6372faa55ce4e5bbb85f8048f2b21014275fa1ff /test/functional/ui | |
| parent | 9d02fc4c00f61724610224f91950c51bd2700c97 (diff) | |
| parent | 5971b863383160d9bf744a9789c1fe5ca62b55a4 (diff) | |
| download | rneovim-be22cc1264ba27ed46f8ef3123c532d721478607.tar.gz rneovim-be22cc1264ba27ed46f8ef3123c532d721478607.tar.bz2 rneovim-be22cc1264ba27ed46f8ef3123c532d721478607.zip | |
Merge pull request #17076 from notomo/expose-extmark-more-details
feat(api): expose extmark more details
Diffstat (limited to 'test/functional/ui')
| -rw-r--r-- | test/functional/ui/bufhl_spec.lua | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/test/functional/ui/bufhl_spec.lua b/test/functional/ui/bufhl_spec.lua index 16ed3b9486..7716414e87 100644 --- a/test/functional/ui/bufhl_spec.lua +++ b/test/functional/ui/bufhl_spec.lua @@ -755,12 +755,24 @@ describe('Buffer highlighting', function() -- TODO: only a virtual text from the same ns curretly overrides -- an existing virtual text. We might add a prioritation system. set_virtual_text(id1, 0, s1, {}) - eq({{1, 0, 0, { priority = 0, virt_text = s1}}}, get_extmarks(id1, {0,0}, {0, -1}, {details=true})) + eq({{1, 0, 0, { + priority = 0, + virt_text = s1, + -- other details + virt_text_pos = 'eol', + virt_text_hide = false, + }}}, get_extmarks(id1, {0,0}, {0, -1}, {details=true})) -- TODO: is this really valid? shouldn't the max be line_count()-1? local lastline = line_count() set_virtual_text(id1, line_count(), s2, {}) - eq({{3, lastline, 0, { priority = 0, virt_text = s2}}}, get_extmarks(id1, {lastline,0}, {lastline, -1}, {details=true})) + eq({{3, lastline, 0, { + priority = 0, + virt_text = s2, + -- other details + virt_text_pos = 'eol', + virt_text_hide = false, + }}}, get_extmarks(id1, {lastline,0}, {lastline, -1}, {details=true})) eq({}, get_extmarks(id1, {lastline+9000,0}, {lastline+9000, -1}, {})) end) |