guillermooo / Vintageous

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

Pasting text ending with newline pastes to wrong line. #1015

Open jordwalke opened 8 years ago

jordwalke commented 8 years ago

a b c

d e f

Visually highlight b through c but include the newline in the selection. Press yank y.

Then put the cursor right before e. Then "paste backwards" with P.

You should get

a b c

d b c e f

But instead you get

a b c

b c d e f

jordwalke commented 8 years ago

In fact, P might entirely be broken if your yanked text contains a newline anywhere - not just at the end.