Skip to content

Commit 71fc189

Browse files
authored
Merge pull request #61 from urn2/master
rebuild menu->item when someone has delete [key up & down fix]
2 parents e78337b + 5da34e8 commit 71fc189

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CliMenu.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ public function removeItem(MenuItemInterface $item)
384384
}
385385

386386
unset($this->items[$key]);
387+
$this->items =array_values($this->items);
387388
}
388389

389390
/**

0 commit comments

Comments
 (0)