aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAugusto Stoffel2022-09-18 13:01:23 +0200
committerLars Ingebrigtsen2022-09-18 13:01:23 +0200
commit5332e4fecb4dece0f15c1ffcba422864b73459ef (patch)
treebbc7580857c5d5c03b8a128121f3e52f9156f6d6
parent06618e9435a65ff1c3be864d5433ec136c2ffc0e (diff)
downloademacs-5332e4fecb4dece0f15c1ffcba422864b73459ef.tar.gz
emacs-5332e4fecb4dece0f15c1ffcba422864b73459ef.zip
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).
-rw-r--r--lisp/cedet/pulse.el8
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.
202Optional argument FACE specifies the face to do the highlighting." 202Optional argument FACE specifies the face to do the highlighting."
203 (save-excursion 203 (save-excursion
204 (goto-char (or point (point))) 204 (goto-char (or point (point)))
205 (let ((start (line-beginning-position)) 205 (let ((start (progn (vertical-motion 0) (point)))
206 (end (save-excursion 206 (end (progn (vertical-motion 1) (point))))
207 (end-of-line)
208 (when (not (eobp))
209 (forward-char 1))
210 (point))))
211 (pulse-momentary-highlight-region start end face)))) 207 (pulse-momentary-highlight-region start end face))))
212 208
213;;;###autoload 209;;;###autoload