-
Notifications
You must be signed in to change notification settings - Fork 313
Open
Labels
In-PRA PR is opened targeting the issueA PR is opened targeting the issueNeeds-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/A
Screenshot
Environment data
PS Version: 7.4.0-rc.1
PS HostName: ConsoleHost (Windows Terminal)
PSReadLine Version: 2.3.4
PSReadLine EditMode: Windows
OS: 10.0.22621.1 (WinBuild.160101.0800)
BufferWidth: 78
BufferHeight: 43
Steps to reproduce
Prerequisite: use the following profile.ps1
if (([console]::outputEncoding).EncodingName -ne 'Unicode (UTF-8)') {
#[Console]::InputEncoding = [Console]::OutputEncoding = $OutputEncoding = [System.Text.Utf8Encoding]::new()
}
function prompt {
"👉 "
}
Set-PSReadLineOption -PromptText '👉 ','❌ '
Set-PSReadLineOption -predictionsource none
- Write text containing a character that will cause PSReadline to register a parsing error, such as
hello world(
- Press
Esc
to delete the whole line
Expected behavior
The text buffer should be completely cleared.
Actual behavior
The characters which caused the parse error remain stuck on the buffer, and cannot be accessed by moving the cursor to their position. Additionally, when the parse error happens, the error prompt shifts slightly to the right.
Metadata
Metadata
Assignees
Labels
In-PRA PR is opened targeting the issueA PR is opened targeting the issueNeeds-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.