mirror of
https://github.com/neovim/neovim.git
synced 2025-12-04 21:52:41 +00:00
highlight: Fix missing .rgb_sp_color in initializers (#9287)
terminal_get_line_attributes() had this bug for a long time, though it
likely had no effect visible to users.
ref #9028
ref 60f845ca55
This commit is contained in:
@@ -120,7 +120,7 @@ describe('terminal window highlighting with custom palette', function()
|
||||
clear()
|
||||
screen = Screen.new(50, 7)
|
||||
screen:set_default_attr_ids({
|
||||
[1] = {foreground = 1193046, special = Screen.colors.Black},
|
||||
[1] = {foreground = tonumber('0x123456')},
|
||||
[2] = {foreground = 12},
|
||||
[3] = {bold = true, reverse = true},
|
||||
[5] = {background = 11},
|
||||
|
||||
@@ -207,14 +207,14 @@ describe('tui', function()
|
||||
screen:set_option('rgb', true)
|
||||
screen:set_default_attr_ids({
|
||||
[1] = {reverse = true},
|
||||
[2] = {foreground = 13, special = Screen.colors.Grey0},
|
||||
[3] = {bold = true, reverse = true, special = Screen.colors.Grey0},
|
||||
[2] = {foreground = 13},
|
||||
[3] = {bold = true, reverse = true},
|
||||
[4] = {bold = true},
|
||||
[5] = {special = Screen.colors.Grey0, reverse = true, foreground = 4},
|
||||
[6] = {foreground = 4, special = Screen.colors.Grey0},
|
||||
[7] = {special = Screen.colors.Grey0, reverse = true, foreground = Screen.colors.SeaGreen4},
|
||||
[8] = {foreground = Screen.colors.SeaGreen4, special = Screen.colors.Grey0},
|
||||
[9] = {special = Screen.colors.Grey0, bold = true, foreground = Screen.colors.Blue1},
|
||||
[5] = {reverse = true, foreground = 4},
|
||||
[6] = {foreground = 4},
|
||||
[7] = {reverse = true, foreground = Screen.colors.SeaGreen4},
|
||||
[8] = {foreground = Screen.colors.SeaGreen4},
|
||||
[9] = {bold = true, foreground = Screen.colors.Blue1},
|
||||
})
|
||||
|
||||
feed_data(':hi SpecialKey ctermfg=3 guifg=SeaGreen\n')
|
||||
|
||||
Reference in New Issue
Block a user