From 18bb2da849262cd7febd6ccaf3150debebb81450 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Mon, 9 Jun 2025 18:02:12 +0200 Subject: [PATCH] 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). --- lisp/lib/projects.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/lib/projects.el b/lisp/lib/projects.el index 6ff145042..6bdc2e76e 100644 --- a/lisp/lib/projects.el +++ b/lisp/lib/projects.el @@ -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