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

gp incorrectly places cursor when pasting more than three lines #4246

Closed
trkoch opened this issue Nov 5, 2019 · 0 comments
Closed

gp incorrectly places cursor when pasting more than three lines #4246

trkoch opened this issue Nov 5, 2019 · 0 comments
Labels

Comments

@trkoch
Copy link
Contributor

trkoch commented Nov 5, 2019

Describe the bug
gp always places the cursor at the third line of pasted text when pasted text has more than three lines.

To Reproduce

Given

|1
2
3
4

4yyGgp

1
2
3
4
1
2
|3
4

Expected behavior

As in Vim, I expect the cursor to be placed at the end of the pasted text.

1
2
3
4
1
2
3
|4

Environment (please complete the following information):

  • Extension version: 1.11.3
  • VS Code version: Code 1.39.2 (6ab598523be7a800d7f3eb4d92d7ab9a66069390, 2019-10-15T15:33:00.827Z)
  • OS version: Darwin x64 19.0.0
@trkoch trkoch changed the title gp incorrectly places cursor when pasting more than two lines gp incorrectly places cursor when pasting more than three lines Nov 5, 2019
trkoch added a commit to trkoch/Vim that referenced this issue Nov 5, 2019
Respect added lines count when creating new PositionDiff.

Fixes VSCodeVim#4246.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants