Skip to content

Commit

Permalink
Fixed failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
babysnakes committed Feb 5, 2022
1 parent bf98b1b commit 3c2cea9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clap_complete/tests/completions/powershell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ Register-ArgumentCompleter -Native -CommandName 'my_app' -ScriptBlock {
$element = $commandElements[$i]
if ($element -isnot [StringConstantExpressionAst] -or
$element.StringConstantType -ne [StringConstantType]::BareWord -or
$element.Value.StartsWith('-')) {
$element.Value.StartsWith('-') -or
$element.Value -eq $wordToComplete) {
break
}
$element.Value
Expand Down

0 comments on commit 3c2cea9

Please sign in to comment.