Pass any args to original handler

This commit is contained in:
Gilbert Sanchez 2024-11-17 00:28:54 +00:00
parent 7e24b1d271
commit f8ecf6fae5

View File

@ -218,7 +218,7 @@ $null = New-Module starship {
$originalHandler = (Get-PSReadLineOption).ViModeChangeHandler $originalHandler = (Get-PSReadLineOption).ViModeChangeHandler
Set-PSReadLineOption -ViModeChangeHandler { Set-PSReadLineOption -ViModeChangeHandler {
[Microsoft.PowerShell.PSConsoleReadLine]::InvokePrompt() [Microsoft.PowerShell.PSConsoleReadLine]::InvokePrompt()
& $originalHandler & $originalHandler @args
}.GetNewClosure() }.GetNewClosure()
} }
} else { } else {