@@ -366,14 +366,17 @@ protected function drawMenuItem(MenuItemInterface $item, bool $selected = false)
366
366
$ invertedColour = $ selected
367
367
? $ this ->style ->getInvertedColoursSetCode ()
368
368
: '' ;
369
+ $ notInvertedColour = $ selected
370
+ ? $ this ->style ->getInvertedColoursUnsetCode ()
371
+ : '' ;
369
372
370
373
if ($ this ->style ->getBorderLeftWidth () || $ this ->style ->getBorderRightWidth ()) {
371
374
$ borderColour = $ this ->style ->getBorderColourCode ();
372
375
} else {
373
376
$ borderColour = '' ;
374
377
}
375
378
376
- return array_map (function ($ row ) use ($ setColour , $ invertedColour , $ resetColour , $ borderColour ) {
379
+ return array_map (function ($ row ) use ($ setColour , $ invertedColour , $ notInvertedColour , $ resetColour , $ borderColour ) {
377
380
return sprintf (
378
381
"%s%s%s%s%s%s%s%s%s%s%s%s%s \n" ,
379
382
str_repeat (' ' , $ this ->style ->getMargin ()),
@@ -384,7 +387,7 @@ protected function drawMenuItem(MenuItemInterface $item, bool $selected = false)
384
387
str_repeat (' ' , $ this ->style ->getPadding ()),
385
388
$ row ,
386
389
str_repeat (' ' , $ this ->style ->getRightHandPadding (mb_strlen (s::stripAnsiEscapeSequence ($ row )))),
387
- $ this -> style -> getInvertedColoursUnsetCode () ,
390
+ $ notInvertedColour ,
388
391
$ borderColour ,
389
392
str_repeat (' ' , $ this ->style ->getBorderRightWidth ()),
390
393
$ resetColour ,
0 commit comments