From: Dmitry Gutov Date: Thu, 29 Jul 2021 01:57:05 +0000 (+0300) Subject: Fix printing of multiple items in one group without line numbers X-Git-Tag: emacs-28.0.90~1665 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=69398a4da0076f8b2b3045dbd80d63b7d694596e;p=emacs.git 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). --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index e2cd904a6cd..7453dbed992 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -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