; Fix search in remote project with relative file names
This commit is contained in:
parent
54a7268763
commit
113bd2082c
1 changed files with 4 additions and 1 deletions
|
@ -2101,7 +2101,10 @@ Such as the current syntax table and the applied syntax properties."
|
|||
(defun xref--convert-hits (hits regexp)
|
||||
(let (xref--last-file-buffer
|
||||
(tmp-buffer (generate-new-buffer " *xref-temp*"))
|
||||
(xref--hits-remote-id (file-remote-p default-directory))
|
||||
(xref--hits-remote-id (if (file-name-absolute-p (cadar hits))
|
||||
;; TODO: Add some test for this.
|
||||
(file-remote-p default-directory)
|
||||
default-directory))
|
||||
(syntax-needed (xref--regexp-syntax-dependent-p regexp)))
|
||||
(unwind-protect
|
||||
(mapcan (lambda (hit)
|
||||
|
|
Loading…
Add table
Reference in a new issue