Fix backspace advice with multi-character sp pairs

This commit is contained in:
Henrik Lissner 2020-07-23 01:04:18 -04:00
parent da1030985d
commit 83faa84591
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -135,7 +135,7 @@ possible, or just one char if that's not possible."
(beg (plist-get pair :beg))
(end (plist-get pair :end)))
(cond ((and end beg (= end (+ beg (length op) (length cl))))
(delete-char -1))
(delete-char (- (length op))))
((doom-surrounded-p pair 'inline 'balanced)
(delete-char -1 killflag)
(delete-char 1)