* lisp/progmodes/xref.el (xref-goto-xref): Bind
'xref--current-item' to highlight the exact symbol after the jump
and not the whole line.
Non-interactively, non-nil QUIT means to first quit the *xref*
buffer."
(interactive)
- (let ((buffer (current-buffer))
- (xref (or (xref--item-at-point)
- (user-error "No reference at point"))))
+ (let* ((buffer (current-buffer))
+ (xref (or (xref--item-at-point)
+ (user-error "No reference at point")))
+ (xref--current-item xref))
(xref--show-location (xref-item-location xref) (if quit 'quit t))
(next-error-found buffer (current-buffer))))