guillermooo / Vintageous

Vi/Vim emulation for Sublime Text 3
http://guillermooo.bitbucket.org/Vintageous/
Other
1.64k stars 115 forks source link

Fix for P newline pasting #1041

Open craig-sh opened 8 years ago

craig-sh commented 8 years ago

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.