mirror of
https://github.com/neovim/neovim.git
synced 2026-08-29 10:31:48 +00:00
fix(ui): handle combining chunked float titles
Problem: The title is combined with window's attributes only if the title is a string (which implies the FloatTitle / FloatFooter highlight groups), but not when the title is text-hl chunks. Solution: Combine specified highlight group with window-local Normal highlight as well.
This commit is contained in:
@@ -3041,10 +3041,10 @@ describe('float window', function()
|
||||
## grid 3
|
||||
|
|
||||
## grid 4
|
||||
{33:╔}🦄{7:BB}{33:═════╗}|
|
||||
{33:╔}{1:🦄}{7:BB}{33:═════╗}|
|
||||
{33:║}{1: halloj! }{33:║}|
|
||||
{33:║}{1: BORDAA }{33:║}|
|
||||
{33:╚}🦄{7:BB}{33:═════╝}|
|
||||
{33:╚}{1:🦄}{7:BB}{33:═════╝}|
|
||||
]],
|
||||
float_pos = { [4] = { 1001, 'NW', 1, 2, 5, true, 50, 1, 2, 5 } },
|
||||
win_viewport = {
|
||||
@@ -3057,10 +3057,10 @@ describe('float window', function()
|
||||
grid = [[
|
||||
^ |
|
||||
{0:~ }|
|
||||
{0:~ }{33:╔}🦄{7:BB}{33:═════╗}{0: }|
|
||||
{0:~ }{33:╔}{1:🦄}{7:BB}{33:═════╗}{0: }|
|
||||
{0:~ }{33:║}{1: halloj! }{33:║}{0: }|
|
||||
{0:~ }{33:║}{1: BORDAA }{33:║}{0: }|
|
||||
{0:~ }{33:╚}🦄{7:BB}{33:═════╝}{0: }|
|
||||
{0:~ }{33:╚}{1:🦄}{7:BB}{33:═════╝}{0: }|
|
||||
|
|
||||
]],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user