Skip to content

Commit f27af16

Browse files
committed
Push marker to the stack when using lsp-find-*
- Fixes #1034
1 parent 8b933e1 commit f27af16

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lsp-mode.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4444,6 +4444,8 @@ perform the request synchronously."
44444444
(lsp--apply-workspace-edit edits))))
44454445

44464446
(defun lsp-show-xrefs (xrefs display-action references?)
4447+
(unless (region-active-p) (push-mark nil t))
4448+
(xref-push-marker-stack)
44474449
(if (boundp 'xref-show-definitions-function)
44484450
(with-no-warnings
44494451
(funcall (if references? xref-show-xrefs-function xref-show-definitions-function)

0 commit comments

Comments
 (0)