Skip to content
New issue

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

[vi-mode] Backwards delete removes the character under the cursor, which is incorrect #1674

Closed
springcomp opened this issue Jul 19, 2020 · 1 comment · Fixed by #2007
Closed
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. VI-Mode

Comments

@springcomp
Copy link
Contributor

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: abcdefgEsc
    Thus, typing abcdefg and positioning the cursor at the end of the line (on the g character).

  • Then, type dFa to delete up to the first a character.

Expected behavior

The entire word should be deleted, except the g character itself.

Actual behavior

Notice that the whole word is deleted, thus leaving an empty buffer.

@ghost ghost added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Jul 19, 2020
@daxian-dbw daxian-dbw added Issue-Bug It either shouldn't be doing this or needs an investigation. VI-Mode and removed Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. labels Jul 22, 2020
springcomp added a commit to springcomp/PSReadLine that referenced this issue Dec 2, 2020
@ghost
Copy link

ghost commented Feb 23, 2021

🎉 This issue was addressed in 2007, which has now been successfully released in v2.2.0-beta2. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. VI-Mode
Projects
None yet
2 participants