(xref--mouse-2): Fix not to jump to the next line

* lisp/progmodes/xref.el (xref--mouse-2): Fix not to jump to the
next line.
This commit is contained in:
Dmitry Gutov 2019-05-03 01:47:15 +03:00
parent 5ff4bfaeec
commit f2b395c4c5

View file

@ -731,7 +731,8 @@ references displayed in the current *xref* buffer."
(interactive "e")
(mouse-set-point event)
(forward-line 0)
(xref--search-property 'xref-item)
(or (get-text-property (point) 'xref-item)
(xref--search-property 'xref-item))
(xref-show-location-at-point))
(defun xref--insert-xrefs (xref-alist)