summaryrefslogtreecommitdiff
path: root/lisp/progmodes/xref.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/xref.el')
-rw-r--r--lisp/progmodes/xref.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index 7f77d218a48..59da5793295 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -379,8 +379,9 @@ WINDOW controls how the buffer is displayed:
(defvar-local xref--window nil)
(defun xref-goto-xref ()
- "Jump to the xref at point and bury the xref buffer."
+ "Jump to the xref on the current line and bury the xref buffer."
(interactive)
+ (back-to-indentation)
(let ((loc (or (xref--location-at-point)
(error "No reference at point")))
(window xref--window))