Skip to content

Commit

Permalink
Pass obsolete path to fd, process-lines doesn't expand the tilde ~
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Nov 26, 2024
1 parent a0b091c commit a7f278a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pet.el
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,7 @@ Return absolute path to FILE if found, nil otherwise."
(condition-case err
(when-let ((root (pet-project-root)))
(if (executable-find pet-fd-command)
(car (cl-remove-if
#'string-empty-p
(apply #'process-lines (append (list pet-fd-command) pet-fd-command-args (list file root)))))
(car (apply #'process-lines `(,pet-fd-command ,@pet-fd-command-args ,file ,(expand-file-name root))))
(when-let ((fileset
(cond ((functionp 'projectile-dir-files)
(mapcar (apply-partially #'concat root)
Expand Down

0 comments on commit a7f278a

Please sign in to comment.