Skip to content

Commit 7db060a

Browse files
authored
fix: use xref-make-match instead of xref-make (#4453)
This allows us to use xref-query-replace-in-results since it needs xref-match-length to be defined.
1 parent 4b87e72 commit 7db060a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lsp-mode.el

+3-2
Original file line numberDiff line numberDiff line change
@@ -5159,11 +5159,12 @@ identifier and the position respectively."
51595159
(max (min end-char len) 0)
51605160
'xref-match t line)
51615161
;; LINE is nil when FILENAME is not being current visited by any buffer.
5162-
(xref-make (or line filename)
5162+
(xref-make-match (or line filename)
51635163
(xref-make-file-location
51645164
filename
51655165
(lsp-translate-line (1+ start-line))
5166-
(lsp-translate-column start-char)))))
5166+
(lsp-translate-column start-char))
5167+
(- end-char start-char))))
51675168

51685169
(defun lsp--location-uri (loc)
51695170
(if (lsp-location? loc)

0 commit comments

Comments
 (0)