From 02f70c163893d8602468bd061e2bf9b6280702e1 Mon Sep 17 00:00:00 2001 From: Oliver Marriott Date: Thu, 2 Jun 2022 11:39:22 +1000 Subject: [PATCH] test(hl): Add Normal group set_hl/get_hl_by_name check --- test/functional/api/highlight_spec.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/functional/api/highlight_spec.lua b/test/functional/api/highlight_spec.lua index a2f8353868..785f72b3db 100644 --- a/test/functional/api/highlight_spec.lua +++ b/test/functional/api/highlight_spec.lua @@ -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)