diff options
-rw-r--r-- | lisp/cedet/pulse.el | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el index 9941f2a0cb7..0564cf6d048 100644 --- a/lisp/cedet/pulse.el +++ b/lisp/cedet/pulse.el @@ -202,12 +202,8 @@ If POINT is nil or missing, the current point is used instead. Optional argument FACE specifies the face to do the highlighting." (save-excursion (goto-char (or point (point))) - (let ((start (line-beginning-position)) - (end (save-excursion - (end-of-line) - (when (not (eobp)) - (forward-char 1)) - (point)))) + (let ((start (progn (vertical-motion 0) (point))) + (end (progn (vertical-motion 1) (point)))) (pulse-momentary-highlight-region start end face)))) ;;;###autoload |