mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 07:01:11 -08:00
(xref--insert-xrefs): Fix printing of line numbers
* lisp/progmodes/xref.el (xref--insert-xrefs): Fix printing of line numbers when we have multiple files with (e.g.) single match on the same line.
This commit is contained in:
parent
f2896fdb6a
commit
6ec3cf1ccb
1 changed files with 3 additions and 1 deletions
|
|
@ -959,7 +959,9 @@ GROUP is a string for decoration purposes and XREF is an
|
|||
(prefix
|
||||
(cond
|
||||
((not line) " ")
|
||||
((equal line prev-line) "")
|
||||
((and (equal line prev-line)
|
||||
(equal prev-group group))
|
||||
"")
|
||||
(t (propertize (format line-format line)
|
||||
'face 'xref-line-number)))))
|
||||
;; Render multiple matches on the same line, together.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue