mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
fix(api): nvim_get_hl should return default flag
(cherry picked from commit 5ba43c18e8
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
2625d84577
commit
2430e96da5
@@ -596,4 +596,9 @@ describe('API: get highlight', function()
|
||||
eq({}, data["@foobar.hubbabubba"])
|
||||
eq(nil, data["@foobar"])
|
||||
end)
|
||||
|
||||
it('should return default flag', function()
|
||||
meths.set_hl(0, 'Tried', { fg = "#00ff00", default = true })
|
||||
eq({ fg = tonumber('00ff00', 16), default = true }, meths.get_hl(0, { name = 'Tried' }))
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user