1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

; 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.
This commit is contained in:
Tassilo Horn 2022-02-09 20:48:02 +01:00
parent 55463952f2
commit f063e38521

View File

@ -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))