]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix printing of multiple items in one group without line numbers
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 29 Jul 2021 01:57:05 +0000 (04:57 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 29 Jul 2021 01:57:36 +0000 (04:57 +0300)
* 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

index e2cd904a6cde7d245c3ef27bef40800a87d5914d..7453dbed9923bf342968bd684bdea7ac71aec75d 100644 (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