mirror of
https://github.com/starship/starship.git
synced 2024-11-25 17:54:08 +01:00
Pass any args to original handler
This commit is contained in:
parent
7e24b1d271
commit
f8ecf6fae5
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user