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

r command with \n does not move cursor to next line #1884

Closed
andywhite37 opened this issue Jun 28, 2017 · 0 comments · Fixed by #3735
Closed

r command with \n does not move cursor to next line #1884

andywhite37 opened this issue Jun 28, 2017 · 0 comments · Fixed by #3735
Labels

Comments

@andywhite37
Copy link

andywhite37 commented Jun 28, 2017

  • Click thumbs-up 👍 on this issue if you want it!
  • Click confused 😕 on this issue if not having it makes VSCodeVim unusable.

The VSCodeVim team prioritizes issues based on reaction count.


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Environment:

  • VSCode Version: 1.13.1
  • VsCodeVim Version: 0.9.0
  • OS: macOS Sierra 10.12.5

What happened:

Note: I'm using the neovim support.

With line like this:

this, is, a, test

In command mode, I put the cursor on the space after the first comma, and pressed r<enter> to replace the space with a newline.

The result was this:

this,<-- cursor on this comma
is, a, test

with the cursor in command mode on the , after this

What did you expect to happen:

I expected the cursor to be on the i on the second line.

How to reproduce it:

Type r<enter> on any line, and notice that the cursor stays on the current line, rather than going to the next line

jpoon pushed a commit that referenced this issue May 7, 2019
The cursor now ends up at the beginning of the next line and will only ever insert one newline, regardless of count prefix.
Fixes #1884
@jpoon jpoon added the kind/bug label May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants