smartparens icon indicating copy to clipboard operation
smartparens copied to clipboard

The delete-selection property on sp-[backward-]delete-char is broken with strict mode

Open Fuco1 opened this issue 10 months ago • 0 comments

Normally we place 'supersede but if strict mode is activated anywhere, it will get replaced with a custom smartparens check. However, the symbol property is global so it will now start working also in non-strict buffers. Further, if any strict buffer is turned non-strict, we reset the property which will then break all the strict buffers.

The solution is to always have the same custom smartparens check which will internally check strict mode status and decide based on that what to do.

Fuco1 avatar Mar 25 '24 21:03 Fuco1