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:
Artem Krinitsyn
2026-07-20 19:25:24 +00:00
parent d343a1e230
commit 18d6b2309f
2 changed files with 6 additions and 5 deletions

View File

@@ -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: }|
|
]],
}