emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 5332e4fecb: pulse-momentary-highlight-one-line: Act on visual lin


From: Lars Ingebrigtsen
Subject: master 5332e4fecb: pulse-momentary-highlight-one-line: Act on visual line
Date: Sun, 18 Sep 2022 07:02:32 -0400 (EDT)

branch: master
commit 5332e4fecb4dece0f15c1ffcba422864b73459ef
Author: Augusto Stoffel <arstoffel@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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).
---
 lisp/cedet/pulse.el | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/lisp/cedet/pulse.el b/lisp/cedet/pulse.el
index 9941f2a0cb..0564cf6d04 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]