xref--insert-xrefs: Use 'shadow' for the line number colon

* lisp/progmodes/xref.el (xref--insert-xrefs): Use face 'shadow' for
the line number colon instead of continuing it face (bug#61340).
This commit is contained in:
Dmitry Gutov 2023-02-09 21:57:18 +02:00
parent 8784b9e817
commit d6d25a3c22

View file

@ -1126,7 +1126,9 @@ GROUP is a string for decoration purposes and XREF is an
maximize (xref-location-line
(xref-item-location xref)))
for line-format = (and max-line
(format "%%%dd:" (1+ (floor (log max-line 10)))))
(format
#("%%%dd:" 0 4 (face xref-line-number) 5 6 (face shadow))
(1+ (floor (log max-line 10)))))
with item-text-props = (list 'mouse-face 'highlight
'keymap xref--button-map
'help-echo
@ -1146,8 +1148,7 @@ GROUP is a string for decoration purposes and XREF is an
((and (equal line prev-line)
(equal prev-group group))
"")
(t (propertize (format line-format line)
'face 'xref-line-number)))))
(t (format line-format line)))))
;; Render multiple matches on the same line, together.
(when (and (equal prev-group group)
(or (null line)