diff options
author | Lute Kamstra <lute@gnu.org> | 2003-05-16 09:28:39 +0000 |
---|---|---|
committer | Lute Kamstra <lute@gnu.org> | 2003-05-16 09:28:39 +0000 |
commit | 733b241e48a8f87dd3d552e8ec890d43e9a3dd73 (patch) | |
tree | 313dd766071be9cdeea8166a1cada492d3aa65c1 /lisp/hl-line.el | |
parent | be9650bc625dc07dc337748b6d9381fc1542cd08 (diff) | |
download | emacs-733b241e48a8f87dd3d552e8ec890d43e9a3dd73.tar.gz |
(hl-line-highlight, global-hl-line-highlight): Use
`line-beginning-position' to determine the beginning of the next
line.
Diffstat (limited to 'lisp/hl-line.el')
-rw-r--r-- | lisp/hl-line.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/hl-line.el b/lisp/hl-line.el index 880ec4ae93e..3ad75ae78fa 100644 --- a/lisp/hl-line.el +++ b/lisp/hl-line.el @@ -124,7 +124,7 @@ addition to `hl-line-highlight' on `post-command-hook'." (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 @@ Global-Hl-Line mode uses the functions `global-hl-line-unhighlight' and (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." |