Skip to content

Commit f2b395c

Browse files
committed
(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.
1 parent 5ff4bfa commit f2b395c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lisp/progmodes/xref.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,8 @@ references displayed in the current *xref* buffer."
731731
(interactive "e")
732732
(mouse-set-point event)
733733
(forward-line 0)
734-
(xref--search-property 'xref-item)
734+
(or (get-text-property (point) 'xref-item)
735+
(xref--search-property 'xref-item))
735736
(xref-show-location-at-point))
736737

737738
(defun xref--insert-xrefs (xref-alist)

0 commit comments

Comments
 (0)