diff options
| author | Richard M. Stallman | 1996-02-11 19:25:08 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-02-11 19:25:08 +0000 |
| commit | 6f554752a425976cb8f236659381cc6803ace828 (patch) | |
| tree | dcde9dd08a07736ed64772755bfebbf3a491bc02 | |
| parent | f470d5375e54cb94b623f8629cf250423a15ed8f (diff) | |
| download | emacs-6f554752a425976cb8f236659381cc6803ace828.tar.gz emacs-6f554752a425976cb8f236659381cc6803ace828.zip | |
(show-paren-command-hook): Position show-paren-overlay-1
properly when first creating it (just like when moving it).
| -rw-r--r-- | lisp/paren.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/paren.el b/lisp/paren.el index 3801ae65b70..fffbbc8a938 100644 --- a/lisp/paren.el +++ b/lisp/paren.el | |||
| @@ -107,7 +107,7 @@ | |||
| 107 | (+ (point) dir) (point) | 107 | (+ (point) dir) (point) |
| 108 | (current-buffer)) | 108 | (current-buffer)) |
| 109 | (setq show-paren-overlay-1 | 109 | (setq show-paren-overlay-1 |
| 110 | (make-overlay (- pos dir) pos))) | 110 | (make-overlay (+ (point) dir) (point)))) |
| 111 | ;; Always set the overlay face, since it varies. | 111 | ;; Always set the overlay face, since it varies. |
| 112 | (overlay-put show-paren-overlay-1 'face face)) | 112 | (overlay-put show-paren-overlay-1 'face face)) |
| 113 | ;; Otherwise, turn off any such highlighting. | 113 | ;; Otherwise, turn off any such highlighting. |