fix(highlight): attr set all when normal attr changed

This commit is contained in:
glepnir
2023-10-03 19:26:11 +08:00
parent 9b3045103f
commit d4872377fe
2 changed files with 27 additions and 0 deletions

View File

@@ -2523,6 +2523,8 @@ describe('highlight namespaces', function()
[6] = {bold = true, reverse = true};
[7] = {reverse = true};
[8] = {foreground = Screen.colors.Gray20};
[9] = {foreground = Screen.colors.Blue};
[10] = {bold = true, foreground = Screen.colors.SeaGreen};
}
ns1 = meths.create_namespace 'grungy'
@@ -2655,4 +2657,21 @@ describe('highlight namespaces', function()
"Normal:Visual",
},res)
end)
it('Normal in set_hl #25474', function()
meths.set_hl(0, 'Normal', {bg='#333333'})
command('highlight Ignore')
screen:expect{grid=[[
|
{1:~ }|
{1:~ }|
{6: }|
|
Ignore {8:xxx} {9:ctermf}|
{9:g=}15 {9:guifg=}|
bg |
{10:Press ENTER or type comma}|
{10:nd to continue}^ |
]]}
end)
end)