(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.
This commit is contained in:
Dmitry Gutov 2021-07-06 01:55:26 +03:00
parent f2896fdb6a
commit 6ec3cf1ccb

View file

@ -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.