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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user