@@ -1017,7 +1017,7 @@ describe('float window', function()
1017
1017
{1: }|
1018
1018
{2:~ }|
1019
1019
]] , float_pos = {
1020
- [5 ] = {{id = 1002 }, " NW" , 4 , 2 , 10 , true , 50 };
1020
+ [5 ] = {{id = 1002 }, " NW" , 4 , 2 , 10 , true };
1021
1021
}}
1022
1022
else
1023
1023
screen :expect ([[
@@ -9191,6 +9191,13 @@ describe('float window', function()
9191
9191
[13 ] = {background = Screen .colors .LightGray , blend = 30 },
9192
9192
[14 ] = {foreground = Screen .colors .Grey0 , background = Screen .colors .Grey88 },
9193
9193
[15 ] = {foreground = tonumber (' 0x939393' ), background = Screen .colors .Grey88 },
9194
+ [16 ] = {background = Screen .colors .Grey90 };
9195
+ [17 ] = {blend = 100 };
9196
+ [18 ] = {background = Screen .colors .LightMagenta , blend = 100 };
9197
+ [19 ] = {background = Screen .colors .LightMagenta , bold = true , blend = 100 , foreground = Screen .colors .Blue1 };
9198
+ [20 ] = {background = Screen .colors .White , foreground = Screen .colors .Gray0 };
9199
+ [21 ] = {background = Screen .colors .White , bold = true , foreground = tonumber (' 0x00007f' )};
9200
+ [22 ] = {background = Screen .colors .Gray90 , foreground = Screen .colors .Gray0 };
9194
9201
})
9195
9202
insert ([[
9196
9203
Lorem ipsum dolor sit amet, consectetur
@@ -9321,9 +9328,7 @@ describe('float window', function()
9321
9328
{13:test }|
9322
9329
{13: }|
9323
9330
{13:popup text }|
9324
- ]] , float_pos = {
9325
- [4 ] = {{id = 1001 }, " NW" , 1 , 2 , 5 , true , 50 };
9326
- }}
9331
+ ]] , float_pos = {[4 ] = {{id = 1001 }, " NW" , 1 , 2 , 5 , true }}}
9327
9332
else
9328
9333
screen :expect ([[
9329
9334
Ut enim ad minim veniam, quis nostrud |
@@ -9477,6 +9482,56 @@ describe('float window', function()
9477
9482
|
9478
9483
]] )
9479
9484
end
9485
+
9486
+ -- Check that 'winblend' applies to border
9487
+ meths .win_set_config (win , {border = ' single' })
9488
+ meths .set_option_value (' winblend' , 100 , {win = win .id })
9489
+ meths .set_option_value (" cursorline" , true , {win = 0 })
9490
+ command (' hi clear VertSplit' )
9491
+ feed (' k0' )
9492
+ if multigrid then
9493
+ screen :expect {grid = [[
9494
+ ## grid 1
9495
+ [2:--------------------------------------------------]|
9496
+ [2:--------------------------------------------------]|
9497
+ [2:--------------------------------------------------]|
9498
+ [2:--------------------------------------------------]|
9499
+ [2:--------------------------------------------------]|
9500
+ [2:--------------------------------------------------]|
9501
+ [2:--------------------------------------------------]|
9502
+ [2:--------------------------------------------------]|
9503
+ [3:--------------------------------------------------]|
9504
+ ## grid 2
9505
+ Ut enim ad minim veniam, quis nostrud |
9506
+ exercitation ullamco laboris nisi ut aliquip ex |
9507
+ ea commodo consequat. Duis aute irure dolor in |
9508
+ reprehenderit in voluptate velit esse cillum |
9509
+ dolore eu fugiat nulla pariatur. Excepteur sint |
9510
+ occaecat cupidatat non proident, sunt in culpa |
9511
+ {16:^qui officia deserunt mollit anim id est }|
9512
+ laborum. |
9513
+ ## grid 3
9514
+ |
9515
+ ## grid 4
9516
+ {17:┌───────────────┐}|
9517
+ {17:│}{11:popup text}{18: }{17:│}|
9518
+ {17:│}{19:~ }{17:│}|
9519
+ {17:│}{19:~ }{17:│}|
9520
+ {17:└───────────────┘}|
9521
+ ]] , float_pos = {[4 ] = {{id = 1001 }, " NW" , 1 , 2 , 5 , true }}}
9522
+ else
9523
+ screen :expect ([[
9524
+ Ut enim ad minim veniam, quis nostrud |
9525
+ exercitation ullamco laboris nisi ut aliquip ex |
9526
+ ea co{20:┌───────────────┐}Duis aute irure dolor in |
9527
+ repre{20:│}{5:popup}{6:it i}{5:text}{20:lu│}tate velit esse cillum |
9528
+ dolor{20:│}{21:~}{20:eu fugiat null│} pariatur. Excepteur sint |
9529
+ occae{20:│}{21:~}{20:t cupidatat no│} proident, sunt in culpa |
9530
+ {16:^qui o}{22:└───────────────┘}{16:ollit anim id est }|
9531
+ laborum. |
9532
+ |
9533
+ ]] )
9534
+ end
9480
9535
end )
9481
9536
9482
9537
it (' can overlap doublewidth chars' , function ()
0 commit comments