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

Unexpected behavior of backspace key in replacing mode by pressing R #74

Closed
jeffreytse opened this issue Mar 29, 2021 · 0 comments
Closed
Assignees
Labels
bug Something isn't working verified This issue was already verified

Comments

@jeffreytse
Copy link
Owner

Reproduce

  • Open a new terminal.
  • Input the content as below.
foo
bar
baz
  • Put the cursor at the "f".
  • Enter normal mode and press R and ww.
  • Press <Backspace> to undo the replace

Result

The replaced character was deleted as below.

fo
bar
baz

Expected behavior

The replaced character should be recovered.

woo
bar
baz
@jeffreytse jeffreytse added bug Something isn't working verified This issue was already verified labels Mar 29, 2021
@jeffreytse jeffreytse self-assigned this Mar 29, 2021
jeffreytse added a commit that referenced this issue Mar 29, 2021
This commit fixed the issue that we got unexpected behavior of
backspace key in replacing mode by pressing `R`, the correct
behavior is that the replaced character should be recovered, and
if no more character should be recovered, the cursor should be
moved backward.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verified This issue was already verified
Projects
None yet
Development

No branches or pull requests

1 participant