mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(lib): doom-project-find-file: allow arbitrary roots
Allow doom-project-find-file to search file hierarchies from arbitrary starting points (otherwise, project.el will resolve to the nearest project root).
This commit is contained in:
@ -163,7 +163,7 @@ If DIR is not a project, it will be indexed (but not cached)."
|
||||
((when-let* ((project-current-directory-override dir)
|
||||
(pr (project-current t dir)))
|
||||
(condition-case _
|
||||
(project-find-file-in nil nil pr)
|
||||
(project-find-file-in nil (list dir) pr t)
|
||||
;; FIX: project.el throws errors if DIR is an empty directory,
|
||||
;; which is poor UX.
|
||||
(wrong-type-argument
|
||||
|
Reference in New Issue
Block a user