aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/paren.el
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1996-02-11 19:25:08 +0000
committerRichard M. Stallman <[email protected]>1996-02-11 19:25:08 +0000
commit6f554752a425976cb8f236659381cc6803ace828 (patch)
treedcde9dd08a07736ed64772755bfebbf3a491bc02 /lisp/paren.el
parentf470d5375e54cb94b623f8629cf250423a15ed8f (diff)
(show-paren-command-hook): Position show-paren-overlay-1
properly when first creating it (just like when moving it).
Diffstat (limited to 'lisp/paren.el')
-rw-r--r--lisp/paren.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/paren.el b/lisp/paren.el
index 3801ae65b7..fffbbc8a93 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -107,7 +107,7 @@
(+ (point) dir) (point)
(current-buffer))
(setq show-paren-overlay-1
- (make-overlay (- pos dir) pos)))
+ (make-overlay (+ (point) dir) (point))))
;; Always set the overlay face, since it varies.
(overlay-put show-paren-overlay-1 'face face))
;; Otherwise, turn off any such highlighting.