-
Notifications
You must be signed in to change notification settings - Fork 316
Open
Labels
Needs-Triage 🔍It's a new issue that core contributor team needs to triage.It's a new issue that core contributor team needs to triage.
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues, especially the pinned issues.
Exception report
N/AScreenshot
Environment data
PS Version: 7.5.4
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.4.5
PSReadLine EditMode: Windows
OS: 10.0.26100.7306 (WinBuild.160101.0800)
BufferWidth: 361
BufferHeight: 96Steps to reproduce
In a pwsh -NoProfile session, run the following:
Set-PSReadLineKeyHandler -Chord "Ctrl+r" -ScriptBlock {
[Microsoft.PowerShell.PSConsoleReadLine]::RevertLine()
[Microsoft.PowerShell.PSConsoleReadLine]::Insert("Inserted Text")
}
Set-PSReadLineOption -PredictionViewStyle ListViewThen, type foo (without pressing the enter key) and press Ctrl+R.
Expected behavior
Pressing Ctrl+R should replace foo by Inserted Text in the prompt.
Actual behavior
Pressing Ctrl+R adds Inserted Text to the existing foo: the end result is fooInserted Text in the prompt.
sususu98
Metadata
Metadata
Assignees
Labels
Needs-Triage 🔍It's a new issue that core contributor team needs to triage.It's a new issue that core contributor team needs to triage.
