diff options
author | luukvbaal <luukvbaal@gmail.com> | 2023-04-18 15:07:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-18 21:07:37 +0800 |
commit | 59fed8bb6457eb6c5204dc39a49d7ea0e1781482 (patch) | |
tree | 5db9bafa4272bd99d0d03da5031026df9e262d1c /test/functional/api/extmark_spec.lua | |
parent | 9033d5eccc505d31b4a95d9fd23a7e2a8d2f282c (diff) | |
download | rneovim-59fed8bb6457eb6c5204dc39a49d7ea0e1781482.tar.gz rneovim-59fed8bb6457eb6c5204dc39a49d7ea0e1781482.tar.bz2 rneovim-59fed8bb6457eb6c5204dc39a49d7ea0e1781482.zip |
fix(api): extmark highlight groups not always included in details (#23179)
Problem: Erroneous for loop condition.
Solution: Remove for loop condition.
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index 4bd8f51904..e30ffc92b6 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -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() |