fix(api): nvim_get_hl should return default flag

This commit is contained in:
Null Chilly
2023-05-22 15:49:01 +07:00
committed by GitHub
parent 4f1d75daf8
commit b7708eac24
2 changed files with 8 additions and 0 deletions

View File

@@ -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)