diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-08-20 08:20:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 08:20:19 +0800 |
commit | a8fbe1d409e08c68b05bc26b096486020ae3162b (patch) | |
tree | 0f1a85498382cb7d3674ca33701f6fc156a581f5 /test/functional/api/extmark_spec.lua | |
parent | 1d11808bfd2879bf278cd05a7095a6634fa5afec (diff) | |
download | rneovim-a8fbe1d409e08c68b05bc26b096486020ae3162b.tar.gz rneovim-a8fbe1d409e08c68b05bc26b096486020ae3162b.tar.bz2 rneovim-a8fbe1d409e08c68b05bc26b096486020ae3162b.zip |
fix(decor): don't use separate DecorSignHighlight for url (#30096)
Diffstat (limited to 'test/functional/api/extmark_spec.lua')
-rw-r--r-- | test/functional/api/extmark_spec.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/functional/api/extmark_spec.lua b/test/functional/api/extmark_spec.lua index a7f4ba25e0..52d8fd5097 100644 --- a/test/functional/api/extmark_spec.lua +++ b/test/functional/api/extmark_spec.lua @@ -1798,10 +1798,15 @@ describe('API/extmarks', function() end) it('can set a URL', function() - set_extmark(ns, 1, 0, 0, { url = 'https://example.com', end_col = 3 }) + local url1 = 'https://example.com' + local url2 = 'http://127.0.0.1' + set_extmark(ns, 1, 0, 0, { url = url1, end_col = 3 }) + set_extmark(ns, 2, 0, 3, { url = url2, hl_group = 'Search', end_col = 5 }) local extmarks = get_extmarks(ns, 0, -1, { details = true }) - eq(1, #extmarks) - eq('https://example.com', extmarks[1][4].url) + eq(2, #extmarks) + eq(url1, extmarks[1][4].url) + eq(url2, extmarks[2][4].url) + eq('Search', extmarks[2][4].hl_group) end) it('respects priority', function() |