expez / evil-smartparens

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

Cannot delete lines if quotes are in comments #49

Closed jgkamat closed 6 years ago

jgkamat commented 6 years ago

If I have the following code (in a c file):

// |they're here.

and I run evil-sp-change-line

I would expect the comment to be deleted, but instead, I get the following message:

sp-get-string: End of buffer

I don't know if this is easy to fix (or possibly out of scope), because I don't know of a way of figuring out if we are in a comment block from the inside. For example:

| // they're here.

works fine...

expez commented 6 years ago

Hi, thanks for the report!

This is unfortunately hard to fix and a bit of an edge-case.

There's a keybinding for overriding the balance check. I use it all the time for situations like this.