From 69398a4da0076f8b2b3045dbd80d63b7d694596e Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 29 Jul 2021 04:57:05 +0300 Subject: [PATCH] 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). --- lisp/progmodes/xref.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2