changeset 51018:5edeb93ad9c0

(hl-line-highlight, global-hl-line-highlight): Use `line-beginning-position' to determine the beginning of the next line.
author Lute Kamstra <lute@gnu.org>
date Fri, 16 May 2003 09:27:36 +0000
parents 2cc9a56fe7e8
children d60c03f7aa72
files lisp/hl-line.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/hl-line.el	Fri May 16 04:16:26 2003 +0000
+++ b/lisp/hl-line.el	Fri May 16 09:27:36 2003 +0000
@@ -124,7 +124,7 @@
         (overlay-put hl-line-overlay
                      'window (unless hl-line-sticky-flag (selected-window)))
         (move-overlay hl-line-overlay
-                      (line-beginning-position) (1+ (line-end-position))))
+                      (line-beginning-position) (line-beginning-position 2)))
     (hl-line-unhighlight)))
 
 (defun hl-line-unhighlight ()
@@ -158,7 +158,7 @@
         (overlay-put global-hl-line-overlay 'face hl-line-face))
       (overlay-put global-hl-line-overlay 'window (selected-window))
       (move-overlay global-hl-line-overlay
-                    (line-beginning-position) (1+ (line-end-position))))))
+                    (line-beginning-position) (line-beginning-position 2)))))
 
 (defun global-hl-line-unhighlight ()
   "Deactivate the Global-Hl-Line overlay on the current line."