AmaiKinono / puni

Structured editing (soft deletion, expression navigating & manipulating) that supports many major modes out of the box.
GNU General Public License v3.0
403 stars 21 forks source link

`puni-kill-line` misbehaving after 518a5362870b6ef01d2d4a158bd38c7280687256 #64

Closed tsdh closed 11 months ago

tsdh commented 1 year ago

I have a buffer (with text-mode or even fundamental-mode with this text.

|This is a sentence.  This is another one.  Together, we are the whole
paragraph.  This is a sentence.  This is another one.  Together, we are the
whole paragraph.  This is a sentence.  This is another one.  Together, we are
the whole paragraph.  This is a sentence.  This is another one.  Together, we
are the whole paragraph.

The | represents point. I hit C-k twice (puni-kill-line). I end up with this:

        |paragraph.  This is a sentence.  This is another one.  Together, we are the
whole paragraph.  This is a sentence.  This is another one.  Together, we are
the whole paragraph.  This is a sentence.  This is another one.  Together, we
are the whole paragraph.

Why does it indent point? I guess that's an unwanted side-effect of 518a5362870b6ef01d2d4a158bd38c7280687256.

Also puni-kill-line at the end of the buffer repeatedly inserts more spaces.

(I've originally added that observation to #16 but that's already closed and I cannot re-open, so I'm filing a new issue.)

AmaiKinono commented 11 months ago

Should be fixed, please test.

tsdh commented 11 months ago

Yes, works fine again. Thanks a lot!