[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/markdown-mode 4961dc76f0 1/4: Check if not at eob in markd
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/markdown-mode 4961dc76f0 1/4: Check if not at eob in markdown-match-math-double |
Date: |
Sat, 15 Jan 2022 10:58:48 -0500 (EST) |
branch: elpa/markdown-mode
commit 4961dc76f0e82ec5b8e8736c23e7d11f2cb86cdb
Author: Vitalie Spinu <spinuvit@gmail.com>
Commit: Vitalie Spinu <spinuvit@gmail.com>
Check if not at eob in markdown-match-math-double
---
markdown-mode.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/markdown-mode.el b/markdown-mode.el
index a4d08fd106..270fddfd3b 100644
--- a/markdown-mode.el
+++ b/markdown-mode.el
@@ -2970,7 +2970,8 @@ $..$ or `markdown-regex-math-inline-double' for matching
$$..$$."
(defun markdown-match-math-double (last)
"Match double quoted $$..$$ math from point to LAST."
(when markdown-enable-math
- (when (and (char-equal (char-after) ?$)
+ (when (and (< (1+ (point)) (point-max))
+ (char-equal (char-after) ?$)
(char-equal (char-after (1+ (point))) ?$)
(not (bolp))
(not (char-equal (char-before) ?\\))