Skip to content

Commit f3cc067

Browse files
author
Mikael Kermorgant
committed
show line content of matched reference
1 parent 32ddf3e commit f3cc067

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phpactor-xref.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ which is really sub optimal."
6262

6363
(defun phpactor-xref--make-xref (candidate)
6464
"Return a new Xref object built from CANDIDATE."
65-
(xref-make (map-elt candidate 'file)
65+
(xref-make (map-elt candidate 'match)
6666
(xref-make-file-location (map-elt candidate 'file)
6767
(map-elt candidate 'line)
6868
(map-elt candidate 'col))))
@@ -79,6 +79,7 @@ which is really sub optimal."
7979
(push (list (cons 'file path)
8080
(cons 'line (plist-get reference :line_no))
8181
(cons 'col (plist-get reference :col_no))
82+
(cons 'match (plist-get reference :line))
8283
;; (cons 'symbol symbol)
8384
;; (cons 'match match)
8485
)

0 commit comments

Comments
 (0)