Fix printing of multiple items in one group without line numbers

* lisp/progmodes/xref.el (xref--insert-xrefs):
Fix printing of multiple items in one group without line numbers
(mentioned in bug#49731).
This commit is contained in:
Dmitry Gutov 2021-07-29 04:57:05 +03:00
parent d6a3b1cd2b
commit 69398a4da0

View file

@ -966,7 +966,8 @@ GROUP is a string for decoration purposes and XREF is an
'face 'xref-line-number)))))
;; Render multiple matches on the same line, together.
(when (and (equal prev-group group)
(not (equal prev-line line)))
(or (null line)
(not (equal prev-line line))))
(insert "\n"))
(xref--insert-propertized
(list 'xref-item xref