purcell / whole-line-or-region

In Emacs, operate on current line if no region is active
114 stars 12 forks source link

Appending wrong to kill-ring #3

Closed moyamo closed 6 years ago

moyamo commented 6 years ago

In version 1.3.1 if you had a buffer (where | is the cursor).

|Line 1
Line 2

Then typing C-w C-w C-y (kill two lines, then paste killed lines) would leave the buffer unchanged (as it should).

However in the master branch this currently results in

Line 2Line1

It doesn't append the newlines and it appends in the wrong order.

From what I can tell this bug was introduced in this range of commits a60e022...d840fbc

purcell commented 6 years ago

Sorry it took so long to get to this: the bug is now fixed. :-)