Skip to content

Commit

Permalink
Fixed #27.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebattista committed May 24, 2020
1 parent 25e9264 commit e01ecc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WslInterop.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function global:Import-WslCommand() {
}

# Populate bash programmable completion variables.
$COMP_LINE = "`"$commandAst`""
$COMP_LINE = "`"$($commandAst.Extent.Text.PadRight($cursorPosition))`""
$COMP_WORDS = "('$($commandAst.CommandElements.Extent.Text -join "' '")')" -replace "''", "'"
$previousWord = $commandAst.CommandElements[0].Value
$COMP_CWORD = 1
Expand Down

0 comments on commit e01ecc1

Please sign in to comment.