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

Fix for P newline pasting #1041

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

craig-sh
Copy link

This fixes #1015 and makes pasting with 'P' closer to what VIM does. Added a test case that emulates the specific case mentioned in the issue. Also, edited another test case to match the behavior I encountered in VIM. I removed a lot of code from from the _vi_big_p() function. It passes all the tests, but i apologize if I've removed some functionality not covered in the tests.

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

Successfully merging this pull request may close these issues.

Pasting text ending with newline pastes to wrong line.
1 participant