[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f063e38521: ; show-paren: improve previous commit bb69361cbe
From: |
Tassilo Horn |
Subject: |
master f063e38521: ; show-paren: improve previous commit bb69361cbe |
Date: |
Wed, 9 Feb 2022 14:50:43 -0500 (EST) |
branch: master
commit f063e385216940f4a914b2978edf8dd178faa2a6
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>
; show-paren: improve previous commit bb69361cbe
Update show-paren--last-pos also in the "not at paren position" case.
Otherwise, we don't get the context info when moving point from a
paren position to a non-paren position and back again.
---
lisp/paren.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/paren.el b/lisp/paren.el
index 4cef9756bc..4e67a4ea4f 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -412,7 +412,8 @@ It is the default value of `show-paren-data-function'."
;; If show-paren-mode is nil in this buffer or if not at a paren that
;; has a match, turn off any previous paren highlighting.
(delete-overlay show-paren--overlay)
- (delete-overlay show-paren--overlay-1))
+ (delete-overlay show-paren--overlay-1)
+ (setq show-paren--last-pos (point)))
;; Found something to highlight.
(let* ((here-beg (nth 0 data))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master f063e38521: ; show-paren: improve previous commit bb69361cbe,
Tassilo Horn <=