diff --git a/PipeScript.types.ps1xml b/PipeScript.types.ps1xml index 532ab386a..13cc7296d 100644 --- a/PipeScript.types.ps1xml +++ b/PipeScript.types.ps1xml @@ -571,7 +571,9 @@ foreach ($potentialCommand in $potentialCommands) { } } $currentParameter = '' # and clear the current parameter. - $currentClause = @() + $currentClause = @() + $commandElementIndex-- + continue } @@ -664,7 +666,6 @@ foreach ($potentialCommand in $potentialCommands) { $sentence } -