]> git.eshelyaron.com Git - emacs.git/commitdiff
(show-paren-command-hook): Position show-paren-overlay-1
authorRichard M. Stallman <rms@gnu.org>
Sun, 11 Feb 1996 19:25:08 +0000 (19:25 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 11 Feb 1996 19:25:08 +0000 (19:25 +0000)
properly when first creating it (just like when moving it).

lisp/paren.el

index 3801ae65b70bb942aa9072c7514cf420cb266ae6..fffbbc8a938a0ece94dcba4a8b8be516706338d6 100644 (file)
                                       (+ (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.