fix(api): extmark highlight groups not always included in details

Problem:    Erroneous for loop condition.
Solution:   Remove for loop condition.
(cherry picked from commit 5d97d61eab)
This commit is contained in:
Luuk van Baal
2023-04-18 14:29:09 +02:00
committed by github-actions[bot]
parent 37a44f3247
commit 54f930f4e3
2 changed files with 7 additions and 1 deletions

View File

@@ -1541,6 +1541,12 @@ describe('API/extmarks', function()
virt_text_pos = "win_col",
virt_text_win_col = 1,
} }, get_extmark_by_id(ns, marks[2], { details = true }))
set_extmark(ns, marks[3], 0, 0, { cursorline_hl_group = "Statement" })
eq({0, 0, {
ns_id = 1,
cursorline_hl_group = "Statement",
right_gravity = true,
} }, get_extmark_by_id(ns, marks[3], { details = true }))
end)
it('can get marks from anonymous namespaces', function()