diff lisp/paren.el @ 14543:77a1345ec9ca

(show-paren-command-hook): Position show-paren-overlay-1 properly when first creating it (just like when moving it).
author Richard M. Stallman <rms@gnu.org>
date Sun, 11 Feb 1996 19:25:08 +0000
parents 83f275dcd93a
children 700c1a3ee265
line wrap: on
line diff
--- a/lisp/paren.el	Sun Feb 11 18:46:18 1996 +0000
+++ b/lisp/paren.el	Sun Feb 11 19:25:08 1996 +0000
@@ -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.