emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master d8e7415 2/2: Tweak mouse highlights in ediff-help


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master d8e7415 2/2: Tweak mouse highlights in ediff-help
Date: Tue, 1 Oct 2019 10:55:59 -0400 (EDT)

branch: master
commit d8e741548cd5221d51536a0cbeabde2e4d925054
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    Tweak mouse highlights in ediff-help
    
    * lisp/vc/ediff-help.el (ediff-set-help-overlays): Only put the
    mouse-face overlay on the actual commands (bug#5079).  This avoids
    a problem when you have very wide frames: The leading blank
    portion of the buffer would get the mouse highlights.
---
 lisp/vc/ediff-help.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/vc/ediff-help.el b/lisp/vc/ediff-help.el
index e8a76c0..0b12756 100644
--- a/lisp/vc/ediff-help.el
+++ b/lisp/vc/ediff-help.el
@@ -163,7 +163,7 @@ the value of this variable and the variables 
`ediff-help-message-*' in
   (goto-char (point-min))
   (let (overl beg end cmd)
     (while (re-search-forward " *\\([^ \t\n|]+\\||\\) +-[^|\n]+" nil 'noerror)
-      (setq beg (match-beginning 0)
+      (setq beg (match-beginning 1)
            end (match-end 0)
            cmd (buffer-substring (match-beginning 1) (match-end 1)))
       (setq overl (ediff-make-overlay beg end))



reply via email to

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