mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
fix(highlight): preserve bg transparency with winblend=100 #34825
Problem: When winblend=100 is set on floating windows with transparent background, the desktop background is not visible through the window. Solution: Add special case to preserve transparency (-1) when blend ratio is 100% and background was originally transparent.
This commit is contained in:
@@ -959,6 +959,7 @@ describe('float window', function()
|
||||
[28] = { foreground = Screen.colors.DarkBlue, background = Screen.colors.LightGrey },
|
||||
[29] = { background = Screen.colors.Yellow1, foreground = Screen.colors.Blue4 },
|
||||
[30] = { background = Screen.colors.Grey, foreground = Screen.colors.Blue4, bold = true },
|
||||
[31] = { foreground = Screen.colors.Grey0 },
|
||||
}
|
||||
screen:set_default_attr_ids(attrs)
|
||||
end)
|
||||
@@ -1839,9 +1840,9 @@ describe('float window', function()
|
||||
grid = [[
|
||||
neeed some dummy |
|
||||
background text |
|
||||
to sh{1: halloj! }{23:f}ect |
|
||||
to sh{1: halloj! }{31:f}ect |
|
||||
of co{1: BORDAA }{24:i}ng |
|
||||
of bo{23:r}{24:der shado}w |
|
||||
of bo{31:r}{24:der shado}w |
|
||||
^ |
|
||||
|
|
||||
]],
|
||||
|
||||
Reference in New Issue
Block a user