diff/highlight: Fix GUI highlight for low-priority CursorLine (#9281)

ref #9028
ref 0653ed63a5
This commit is contained in:
Justin M. Keyes 2018-11-28 03:23:10 +01:00 committed by GitHub
parent 3348eea429
commit cf631aaed0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -186,8 +186,8 @@ int hl_get_underline(void)
.cterm_fg_color = 0,
.cterm_bg_color = 0,
.rgb_ae_attr = (int16_t)HL_UNDERLINE,
.rgb_fg_color = 0,
.rgb_bg_color = 0,
.rgb_fg_color = -1,
.rgb_bg_color = -1,
},
.kind = kHlUI,
.id1 = 0,

View File

@ -797,8 +797,10 @@ describe('CursorLine highlight', function()
[8] = {bold = true, foreground = Screen.colors.Blue1},
[9] = {bold = true, reverse = true},
[10] = {bold = true},
[11] = {special = Screen.colors.Grey0, underline = true, foreground = Screen.colors.Grey0, background = Screen.colors.Grey0},
[12] = {bold = true, special = Screen.colors.Grey0, background = Screen.colors.Grey0, foreground = Screen.colors.Grey0, underline = true},
[11] = {special = Screen.colors.Grey0, underline = true,
background = Screen.colors.LightMagenta},
[12] = {bold = true, underline = true, special = Screen.colors.Grey0,
background = Screen.colors.Red},
})
end)
end)