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:
parent
8784b9e817
commit
d6d25a3c22
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue