Skip to content

Fix for P newline pasting#1041

Open
craig-sh wants to merge 1 commit into
guillermooo:masterfrom
craig-sh:newline_P_paste
Open

Fix for P newline pasting#1041
craig-sh wants to merge 1 commit into
guillermooo:masterfrom
craig-sh:newline_P_paste

Conversation

@craig-sh

Copy link
Copy Markdown

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