[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/smartparens f59a40d: fix: fix error in sp-char-escaped-p a
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/smartparens f59a40d: fix: fix error in sp-char-escaped-p at point-min |
Date: |
Mon, 1 Nov 2021 07:58:11 -0400 (EDT) |
branch: elpa/smartparens
commit f59a40d54f35299007c396bd667ce3e9ec4714e3
Author: Matus Goljer <matus.goljer@gmail.com>
Commit: Matus Goljer <matus.goljer@gmail.com>
fix: fix error in sp-char-escaped-p at point-min
Fixes #1111
---
smartparens.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/smartparens.el b/smartparens.el
index e3ce1ff..7e59a7f 100644
--- a/smartparens.el
+++ b/smartparens.el
@@ -2953,9 +2953,10 @@ This predicate is only tested on \"insert\" action."
(defun sp-char-escaped-p (_id action _context)
"Return non-nil if character before point is escaped with \\."
(when (eq action 'insert)
- (save-excursion
- (backward-char 1)
- (looking-back "\\\\" 1))))
+ (unless (= (point) (point-min))
+ (save-excursion
+ (backward-char 1)
+ (looking-back "\\\\" 1)))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/smartparens f59a40d: fix: fix error in sp-char-escaped-p at point-min,
ELPA Syncer <=