mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 12:28:18 +00:00
test(hl): Add Normal group set_hl/get_hl_by_name check
(cherry picked from commit 02f70c1638
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
79ca64a1ef
commit
512a8197c8
@@ -337,4 +337,10 @@ describe("API: set highlight", function()
|
||||
exec_capture('highlight Test_hl3'))
|
||||
|
||||
end)
|
||||
|
||||
it ("correctly sets 'Normal' internal properties", function()
|
||||
-- Normal has some special handling internally. #18024
|
||||
meths.set_hl(0, 'Normal', {fg='#000083', bg='#0000F3'})
|
||||
eq({foreground = 131, background = 243}, nvim("get_hl_by_name", 'Normal', true))
|
||||
end)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user