mirror of
https://github.com/starship/starship.git
synced 2024-11-22 00:04:05 +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
|
||||
Set-PSReadLineOption -ViModeChangeHandler {
|
||||
[Microsoft.PowerShell.PSConsoleReadLine]::InvokePrompt()
|
||||
& $originalHandler
|
||||
& $originalHandler @args
|
||||
}.GetNewClosure()
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user