@@ -34,6 +34,7 @@ describe('API: highlight',function()
34
34
underdotted = true ,
35
35
underdashed = true ,
36
36
strikethrough = true ,
37
+ nocombine = true ,
37
38
}
38
39
39
40
before_each (function ()
@@ -55,7 +56,7 @@ describe('API: highlight',function()
55
56
eq (' Invalid highlight id: 30000' , string.match (emsg , ' Invalid.*' ))
56
57
57
58
-- Test all highlight properties.
58
- command (' hi NewHighlight gui=underline,bold,undercurl,underdouble,underdotted,underdashed,italic,reverse,strikethrough' )
59
+ command (' hi NewHighlight gui=underline,bold,undercurl,underdouble,underdotted,underdashed,italic,reverse,strikethrough,nocombine ' )
59
60
eq (expected_rgb2 , nvim (" get_hl_by_id" , hl_id , true ))
60
61
61
62
-- Test nil argument.
@@ -136,10 +137,10 @@ describe('API: highlight',function()
136
137
-- Test cterm & Normal values. #18024 (tail) & #18980
137
138
-- Ensure Normal, and groups that match Normal return their fg & bg cterm values
138
139
meths .set_hl (0 , ' Normal' , {ctermfg = 17 , ctermbg = 213 })
139
- meths .set_hl (0 , ' NotNormal' , {ctermfg = 17 , ctermbg = 213 })
140
+ meths .set_hl (0 , ' NotNormal' , {ctermfg = 17 , ctermbg = 213 , nocombine = true })
140
141
-- Note colors are "cterm" values, not rgb-as-ints
141
142
eq ({foreground = 17 , background = 213 }, nvim (" get_hl_by_name" , ' Normal' , false ))
142
- eq ({foreground = 17 , background = 213 }, nvim (" get_hl_by_name" , ' NotNormal' , false ))
143
+ eq ({foreground = 17 , background = 213 , nocombine = true }, nvim (" get_hl_by_name" , ' NotNormal' , false ))
143
144
end )
144
145
145
146
it (' nvim_get_hl_id_by_name' , function ()
@@ -214,6 +215,7 @@ describe("API: set highlight", function()
214
215
reverse = true ,
215
216
undercurl = true ,
216
217
strikethrough = true ,
218
+ nocombine = true ,
217
219
}
218
220
}
219
221
local highlight3_result_gui = {
@@ -236,6 +238,7 @@ describe("API: set highlight", function()
236
238
reverse = true ,
237
239
undercurl = true ,
238
240
strikethrough = true ,
241
+ nocombine = true ,
239
242
}
240
243
241
244
local function get_ns ()
@@ -290,7 +293,7 @@ describe("API: set highlight", function()
290
293
exec_capture (' highlight Test_hl' ))
291
294
292
295
meths .set_hl (0 , ' Test_hl2' , highlight3_config )
293
- eq (' Test_hl2 xxx cterm=undercurl,italic,reverse,strikethrough ctermfg=8 ctermbg=15 gui=bold,underline,undercurl,underdouble,underdotted,underdashed,italic,reverse,strikethrough guifg=#ff0000 guibg=#0032aa' ,
296
+ eq (' Test_hl2 xxx cterm=undercurl,italic,reverse,strikethrough,nocombine ctermfg=8 ctermbg=15 gui=bold,underline,undercurl,underdouble,underdotted,underdashed,italic,reverse,strikethrough guifg=#ff0000 guibg=#0032aa' ,
294
297
exec_capture (' highlight Test_hl2' ))
295
298
296
299
-- Colors are stored with the name they are defined, but
0 commit comments