@@ -3160,16 +3160,20 @@ func testHighlight(v *Nvim) func(*testing.T) {
3160
3160
}
3161
3161
3162
3162
wantCTerm := & HLAttrs {
3163
- Underline : true ,
3164
- Foreground : - 1 ,
3165
- Background : 10 ,
3166
- Special : - 1 ,
3163
+ Underline : true ,
3164
+ Foreground : - 1 ,
3165
+ Background : 10 ,
3166
+ Special : - 1 ,
3167
+ CtermForeground : - 1 ,
3168
+ CtermBackground : - 1 ,
3167
3169
}
3168
3170
wantGUI := & HLAttrs {
3169
- Bold : true ,
3170
- Foreground : cm ["Red" ],
3171
- Background : cm ["Yellow" ],
3172
- Special : cm ["Blue" ],
3171
+ Bold : true ,
3172
+ Foreground : cm ["Red" ],
3173
+ Background : cm ["Yellow" ],
3174
+ Special : cm ["Blue" ],
3175
+ CtermForeground : - 1 ,
3176
+ CtermBackground : - 1 ,
3173
3177
}
3174
3178
3175
3179
var nsID int
@@ -3219,12 +3223,14 @@ func testHighlight(v *Nvim) func(*testing.T) {
3219
3223
}
3220
3224
3221
3225
wantErrorMsgEHL := & HLAttrs {
3222
- Bold : true ,
3223
- Underline : true ,
3224
- Italic : true ,
3225
- Foreground : 16777215 ,
3226
- Background : 16711680 ,
3227
- Special : - 1 ,
3226
+ Bold : true ,
3227
+ Underline : true ,
3228
+ Italic : true ,
3229
+ Foreground : 16777215 ,
3230
+ Background : 16711680 ,
3231
+ Special : - 1 ,
3232
+ CtermForeground : - 1 ,
3233
+ CtermBackground : - 1 ,
3228
3234
}
3229
3235
if ! reflect .DeepEqual (wantErrorMsgEHL , errorMsgHL ) {
3230
3236
t .Fatalf ("SetHighlight:\n want %#v\n got %#v" , wantErrorMsgEHL , errorMsgHL )
@@ -3242,14 +3248,16 @@ func testHighlight(v *Nvim) func(*testing.T) {
3242
3248
t .Fatal (err )
3243
3249
}
3244
3250
want := & HLAttrs {
3245
- Bold : true ,
3246
- Underline : false ,
3247
- Undercurl : false ,
3248
- Italic : false ,
3249
- Reverse : false ,
3250
- Foreground : 16776960 ,
3251
- Background : 16711680 ,
3252
- Special : - 1 ,
3251
+ Bold : true ,
3252
+ Underline : false ,
3253
+ Undercurl : false ,
3254
+ Italic : false ,
3255
+ Reverse : false ,
3256
+ Foreground : 16776960 ,
3257
+ Background : 16711680 ,
3258
+ Special : - 1 ,
3259
+ CtermForeground : - 1 ,
3260
+ CtermBackground : - 1 ,
3253
3261
}
3254
3262
got , err := v .HLByID (nsID2 , true )
3255
3263
if err != nil {
@@ -3290,16 +3298,20 @@ func testHighlight(v *Nvim) func(*testing.T) {
3290
3298
}
3291
3299
3292
3300
wantCTerm := & HLAttrs {
3293
- Underline : true ,
3294
- Foreground : - 1 ,
3295
- Background : 10 ,
3296
- Special : - 1 ,
3301
+ Underline : true ,
3302
+ Foreground : - 1 ,
3303
+ Background : 10 ,
3304
+ Special : - 1 ,
3305
+ CtermForeground : - 1 ,
3306
+ CtermBackground : - 1 ,
3297
3307
}
3298
3308
wantGUI := & HLAttrs {
3299
- Bold : true ,
3300
- Foreground : cm [`Red` ],
3301
- Background : cm [`Yellow` ],
3302
- Special : cm [`Blue` ],
3309
+ Bold : true ,
3310
+ Foreground : cm [`Red` ],
3311
+ Background : cm [`Yellow` ],
3312
+ Special : cm [`Blue` ],
3313
+ CtermForeground : - 1 ,
3314
+ CtermBackground : - 1 ,
3303
3315
}
3304
3316
3305
3317
var nsID int
@@ -3356,12 +3368,14 @@ func testHighlight(v *Nvim) func(*testing.T) {
3356
3368
}
3357
3369
3358
3370
wantErrorMsgEHL := & HLAttrs {
3359
- Bold : true ,
3360
- Underline : true ,
3361
- Italic : true ,
3362
- Foreground : 16777215 ,
3363
- Background : 16711680 ,
3364
- Special : - 1 ,
3371
+ Bold : true ,
3372
+ Underline : true ,
3373
+ Italic : true ,
3374
+ Foreground : 16777215 ,
3375
+ Background : 16711680 ,
3376
+ Special : - 1 ,
3377
+ CtermForeground : - 1 ,
3378
+ CtermBackground : - 1 ,
3365
3379
}
3366
3380
if ! reflect .DeepEqual (& errorMsgHL , wantErrorMsgEHL ) {
3367
3381
t .Fatalf ("SetHighlight:\n got %#v\n want %#v" , & errorMsgHL , wantErrorMsgEHL )
@@ -3380,14 +3394,16 @@ func testHighlight(v *Nvim) func(*testing.T) {
3380
3394
t .Fatal (err )
3381
3395
}
3382
3396
want := & HLAttrs {
3383
- Bold : true ,
3384
- Underline : false ,
3385
- Undercurl : false ,
3386
- Italic : false ,
3387
- Reverse : false ,
3388
- Foreground : 16776960 ,
3389
- Background : 16711680 ,
3390
- Special : - 1 ,
3397
+ Bold : true ,
3398
+ Underline : false ,
3399
+ Undercurl : false ,
3400
+ Italic : false ,
3401
+ Reverse : false ,
3402
+ Foreground : 16776960 ,
3403
+ Background : 16711680 ,
3404
+ Special : - 1 ,
3405
+ CtermForeground : - 1 ,
3406
+ CtermBackground : - 1 ,
3391
3407
}
3392
3408
3393
3409
var got HLAttrs
@@ -3478,6 +3494,7 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
3478
3494
Col : 0 ,
3479
3495
Focusable : true ,
3480
3496
Style : "minimal" ,
3497
+ ZIndex : 50 ,
3481
3498
}
3482
3499
w , err := v .OpenWindow (Buffer (0 ), true , cfg )
3483
3500
if err != nil {
@@ -3518,6 +3535,7 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
3518
3535
Height : 10 ,
3519
3536
Row : 1 ,
3520
3537
Focusable : false ,
3538
+ ZIndex : 50 ,
3521
3539
}
3522
3540
if err := v .SetWindowConfig (w , wantWinConfig ); err != nil {
3523
3541
t .Fatal (err )
@@ -3595,6 +3613,7 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
3595
3613
Col : 0 ,
3596
3614
Focusable : true ,
3597
3615
Style : "minimal" ,
3616
+ ZIndex : 50 ,
3598
3617
}
3599
3618
var w Window
3600
3619
b .OpenWindow (Buffer (0 ), true , cfg , & w )
@@ -3634,6 +3653,7 @@ func testFloatingWindow(v *Nvim) func(*testing.T) {
3634
3653
Height : 10 ,
3635
3654
Row : 1 ,
3636
3655
Focusable : false ,
3656
+ ZIndex : 50 ,
3637
3657
}
3638
3658
b .SetWindowConfig (w , wantWinConfig )
3639
3659
if err := b .Execute (); err != nil {
@@ -4525,6 +4545,7 @@ func testTerm(v *Nvim) func(*testing.T) {
4525
4545
Height : 31 ,
4526
4546
Row : 1 ,
4527
4547
Col : 1 ,
4548
+ ZIndex : 50 ,
4528
4549
}
4529
4550
if _ , err := v .OpenWindow (buf , false , cfg ); err != nil {
4530
4551
t .Fatal (err )
@@ -4556,6 +4577,7 @@ func testTerm(v *Nvim) func(*testing.T) {
4556
4577
Height : 31 ,
4557
4578
Row : 1 ,
4558
4579
Col : 1 ,
4580
+ ZIndex : 50 ,
4559
4581
}
4560
4582
var win Window
4561
4583
b .OpenWindow (buf , false , cfg , & win )
0 commit comments