(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
Reference in a new issue