]> git.eshelyaron.com Git - emacs.git/commitdiff
Tweak mouse highlights in ediff-help
authorLars Ingebrigtsen <larsi@gnus.org>
Tue, 1 Oct 2019 14:55:48 +0000 (16:55 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 1 Oct 2019 14:55:48 +0000 (16:55 +0200)
* 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

index e8a76c0a7557ea8e0142e54abddbc6c59c1c6791..0b127564743b57638eac2e494f777f7da49b54ac 100644 (file)
@@ -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))