Skip to content

Commit 32ddf3e

Browse files
author
Mikael Kermorgant
committed
handle column of found reference
1 parent 26c0e58 commit 32ddf3e

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
@@ -65,7 +65,7 @@ which is really sub optimal."
6565
(xref-make (map-elt candidate 'file)
6666
(xref-make-file-location (map-elt candidate 'file)
6767
(map-elt candidate 'line)
68-
0)))
68+
(map-elt candidate 'col))))
6969

7070
(defun phpactor-xref--find-candidates ()
7171
"Fetch references and return a list."
@@ -78,6 +78,7 @@ which is really sub optimal."
7878
(when path
7979
(push (list (cons 'file path)
8080
(cons 'line (plist-get reference :line_no))
81+
(cons 'col (plist-get reference :col_no))
8182
;; (cons 'symbol symbol)
8283
;; (cons 'match match)
8384
)

0 commit comments

Comments
 (0)