Skip to content

Commit 90dec70

Browse files
committed
Readd the check for delete-selection-pre-hook
1 parent b20f7d0 commit 90dec70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smartparens.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ kill \"subwords\" when `subword-mode' is active."
13931393

13941394
(defadvice delete-selection-pre-hook (around fix-sp-wrap activate)
13951395
"Fix `sp-wrap' in `delete-selection-mode'."
1396-
(unless (sp-wrap--can-wrap-p)
1396+
(unless (and smartparens-mode (sp-wrap--can-wrap-p))
13971397
ad-do-it))
13981398

13991399

0 commit comments

Comments
 (0)