Fix over-zealous delete-backward-char #431

Would consume entire sexps.
This commit is contained in:
Henrik Lissner 2018-02-24 20:05:30 -05:00
parent 5fc4ed3f81
commit 2f7c9254d6
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -197,7 +197,7 @@ possible, or just one char if that's not possible."
(when (= (point) (+ (length cl) beg))
(sp-backward-delete-char 1)
(sp-insert-pair op)))
((and (bolp) (doom-surrounded-p pair))
((and (bolp) (doom-surrounded-p pair nil :balanced))
(delete-region beg end)
(sp-insert-pair op))
(t