Skip to content
forked from neovim/neovim

Commit

Permalink
test(hl): Add Normal group set_hl/get_hl_by_name check
Browse files Browse the repository at this point in the history
(cherry picked from commit 02f70c1)
  • Loading branch information
rktjmp authored and github-actions[bot] committed Jun 18, 2022
1 parent 79ca64a commit 512a819
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/functional/api/highlight_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 512a819

Please sign in to comment.