expez / evil-smartparens

Evil integration for Smartparens
GNU General Public License v3.0
134 stars 17 forks source link

evil-sp-delete-line deleting closing parenthesis #17

Closed juliapath closed 9 years ago

juliapath commented 9 years ago

How to reproduce

Create a pair of parenthesis and place the point such that it is on the same line with nothing but whitespace in between it and the closing parenthis. Then press D.

( Test |   ) Test

Expected Result

The region from the point up to the closing parenthesis is deleted:

( Test |) Test

Actual Result

The region from the point up to and including the closing parenthesis is deleted:

( Test | Test
expez commented 9 years ago

Thanks for the bug report!

juliapath commented 9 years ago

The problem persists if the pair is empty and the point on the closing parenthesis like this: ([)].

expez commented 9 years ago

I've never hit D in that context before. Thanks again! :)