Skip to content

Commit 81e2fc8

Browse files
author
Danny Milosavljevic
committed
lsp-find-definition-mouse: Remember click position.
Remember click position so back-button can go back to it later.
1 parent d3110e3 commit 81e2fc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: lsp-mode.el

+1
Original file line numberDiff line numberDiff line change
@@ -6689,6 +6689,7 @@ REFERENCES? t when METHOD returns references."
66896689
(let* ((ec (event-start click))
66906690
(p1 (posn-point ec))
66916691
(w1 (posn-window ec)))
6692+
(mouse-set-mark click) ; so we can go back here later
66926693
(select-window w1)
66936694
(goto-char p1)
66946695
(lsp-find-definition)))

0 commit comments

Comments
 (0)