Skip to content

Commit a441aaa

Browse files
committed
Merge remote-tracking branch 'howlettt/multi-select-error'
2 parents f99e04f + 3fdfd94 commit a441aaa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

PSMenu/Public/Show-Menu.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ function Show-Menu {
148148

149149
if ($ReturnIndex -eq $false -and $null -ne $Position) {
150150
if ($MultiSelect) {
151-
Return $MenuItems[$CurrentSelection]
151+
if ($null -ne $CurrentSelection) {
152+
Return $MenuItems[$CurrentSelection]
153+
}
152154
}
153155
else {
154156
Return $MenuItems[$Position]

0 commit comments

Comments
 (0)