[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 69398a4: Fix printing of multiple items in one group without line
From: |
Dmitry Gutov |
Subject: |
master 69398a4: Fix printing of multiple items in one group without line numbers |
Date: |
Wed, 28 Jul 2021 21:57:49 -0400 (EDT) |
branch: master
commit 69398a4da0076f8b2b3045dbd80d63b7d694596e
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
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 e2cd904..7453dbe 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 69398a4: Fix printing of multiple items in one group without line numbers,
Dmitry Gutov <=