pulse-momentary-highlight-one-line: Act on visual line
* lisp/cedet/pulse.el (pulse-momentary-highlight-one-line): Act on entire visual line, ignoring fields etc (bug#57876).
This commit is contained in:
parent
06618e9435
commit
5332e4fecb
1 changed files with 2 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue