Skip to content

Commit

Permalink
Fix "wonky" selected item
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynesth authored May 7, 2018
1 parent d645c73 commit cfa7953
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CliMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ protected function drawMenuItem(MenuItemInterface $item, bool $selected = false)

return array_map(function ($row) use ($setColour, $invertedColour, $resetColour, $borderColour) {
return sprintf(
"%s%s%s%s%s%s%s%s%s%s%s%s\n",
"%s%s%s%s%s%s%s%s%s%s%s%s%s\n",
str_repeat(' ', $this->style->getMargin()),
$borderColour,
str_repeat(' ', $this->style->getBorderLeftWidth()),
Expand All @@ -384,6 +384,7 @@ protected function drawMenuItem(MenuItemInterface $item, bool $selected = false)
str_repeat(' ', $this->style->getPadding()),
$row,
str_repeat(' ', $this->style->getRightHandPadding(mb_strlen(s::stripAnsiEscapeSequence($row)))),
$this->style->getInvertedColoursUnsetCode(),
$borderColour,
str_repeat(' ', $this->style->getBorderRightWidth()),
$resetColour,
Expand Down

0 comments on commit cfa7953

Please sign in to comment.