emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master f2b395c 2/3: (xref--mouse-2): Fix not to jump to th


From: Dmitry Gutov
Subject: [Emacs-diffs] master f2b395c 2/3: (xref--mouse-2): Fix not to jump to the next line
Date: Thu, 2 May 2019 18:53:22 -0400 (EDT)

branch: master
commit f2b395c4c57c0274de38df7a4fe42dbc63a5000c
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    (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.
---
 lisp/progmodes/xref.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 18e97bd..c7f015b 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]