fix(hl): set Normal hl group sg_attr value #18820

fix #18024
This commit is contained in:
Oliver Marriott
2022-06-04 01:29:49 +10:00
committed by GitHub
parent 84d8cc3ae5
commit 9aba204335
2 changed files with 8 additions and 2 deletions

View File

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