Show-Command's "Run" doesn't actually run with PSReadline #198
Labels
Milestone
Comments
Just ran into this. |
Yep, still an issue Edit: Looks like Show-Command prints an ascii 13 carriage return. Running the below fixed Ctrl+M entering Set-PSReadlineKeyHandler -Chord 'Ctrl+M' -Function AcceptLine Edit 2: This should work but I can't figure out how to trigger it. $pattern = $null
[Microsoft.PowerShell.PSConsoleReadLine]::GetBufferState([ref]$pattern, [ref]$null)
if (-not(-not([char[]]$pattern -eq 13))){
[Microsoft.PowerShell.PSConsoleReadLine]::AcceptLine()
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Repro:
Expected:
the command runs
Actual:
The command now looks like:
PS> Get-Culture^M
The text was updated successfully, but these errors were encountered: