From: Dmitry Gutov Date: Mon, 5 Jul 2021 22:55:26 +0000 (+0300) Subject: (xref--insert-xrefs): Fix printing of line numbers X-Git-Tag: emacs-28.0.90~1948 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ec3cf1ccb5380acc376e89140b8d3a7fa4e471a;p=emacs.git (xref--insert-xrefs): Fix printing of line numbers * lisp/progmodes/xref.el (xref--insert-xrefs): Fix printing of line numbers when we have multiple files with (e.g.) single match on the same line. --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index b7a926f82e0..e2cd904a6cd 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -959,7 +959,9 @@ GROUP is a string for decoration purposes and XREF is an (prefix (cond ((not line) " ") - ((equal line prev-line) "") + ((and (equal line prev-line) + (equal prev-group group)) + "") (t (propertize (format line-format line) 'face 'xref-line-number))))) ;; Render multiple matches on the same line, together.