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 replacing chars by R command from normal mode #73

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 second "o".
  • Enter normal mode and press R and ww.

Result

The second line was joined to above line as below.

fowwbar
baz

Expected behavior

The second line should not be joined to above line.

foww
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
When the cursor is at the end of a line, we use `R` command to
replace character, the second line is joined to above line, the
expected behavior is inserting the character to the end of line.
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