Commit 776b7d5a authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(show-paren-command-hook): Specify buffer for move-overay.

parent 362a07f4
......@@ -96,7 +96,9 @@
;; before point as well as its matching open.
(if show-paren-overlay-1
(move-overlay show-paren-overlay-1 (+ (point) dir) (point))
(move-overlay show-paren-overlay-1
(+ (point) dir) (point)
(setq show-paren-overlay-1
(make-overlay (- pos dir) pos)))
(overlay-put show-paren-overlay-1 'face face))
......@@ -106,7 +108,8 @@
(delete-overlay show-paren-overlay-1)))
;; Turn on highlighting for the matching paren.
(if show-paren-overlay
(move-overlay show-paren-overlay (- pos dir) pos)
(move-overlay show-paren-overlay (- pos dir) pos
(setq show-paren-overlay
(make-overlay (- pos dir) pos)))
(overlay-put show-paren-overlay 'face face))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment