We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PS version: 5.1.19041.1 PSReadline version: 2.0.0-beta2 os: 10.0.19041.322 (WinBuild.160101.0800) PS file version: 10.0.19041.322 (WinBuild.160101.0800) HostName: ConsoleHost (Windows Terminal) BufferWidth: 120 BufferHeight: 30
PS version: 7.1.0-preview.2 PSReadline version: 2.0.1 os: 10.0.19041.322 (WinBuild.160101.0800) PS file version: 7.1.0.0 HostName: ConsoleHost (Windows Terminal) BufferWidth: 120 BufferHeight: 30
Type the following sequence: oneEsc0 Thus, typing one and positioning the cursor at the beginning of the line.
one
Then, type x to delete one character.
Finally, type uto undo.
The cursor should stay at the beginning of the line. In fact, the cursor should stay at the start position of the deleted text.
Notice that the cursor is now on the n letter, instead of the o letter, at the beginning of the line.
n
o
The text was updated successfully, but these errors were encountered:
Added simplified test to prevent mixing this with undo (PowerShell#1673)
0864406
Added extra test for PowerShell#1673
6a4cb85
7dc3dd4
🎉 This issue was addressed in 2045, which has now been successfully released in v2.2.0-beta4. 🎉
v2.2.0-beta4
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Environments
PS version: 5.1.19041.1
PSReadline version: 2.0.0-beta2
os: 10.0.19041.322 (WinBuild.160101.0800)
PS file version: 10.0.19041.322 (WinBuild.160101.0800)
HostName: ConsoleHost (Windows Terminal)
BufferWidth: 120
BufferHeight: 30
PS version: 7.1.0-preview.2
PSReadline version: 2.0.1
os: 10.0.19041.322 (WinBuild.160101.0800)
PS file version: 7.1.0.0
HostName: ConsoleHost (Windows Terminal)
BufferWidth: 120
BufferHeight: 30
Steps to reproduce
Type the following sequence: oneEsc0
Thus, typing
one
and positioning the cursor at the beginning of the line.Then, type x to delete one character.
Finally, type uto undo.
Expected behavior
The cursor should stay at the beginning of the line. In fact, the cursor should stay at the start position of the deleted text.
Actual behavior
Notice that the cursor is now on the
n
letter, instead of theo
letter, at the beginning of the line.The text was updated successfully, but these errors were encountered: