fix: project-current-directory-override takes a directory

Not a `t`. [It overrides `default-directory`](6c1c3120b9/lisp/progmodes/project.el (L196-L198)).
This commit is contained in:
Dani Brown
2024-12-01 20:44:57 +00:00
committed by Henrik Lissner
parent cfb93b2a32
commit 1fc41d719c

View File

@ -160,7 +160,7 @@ If DIR is not a project, it will be indexed (but not cached)."
((and (bound-and-true-p helm-mode) ((and (bound-and-true-p helm-mode)
(fboundp 'helm-find-files)) (fboundp 'helm-find-files))
(call-interactively #'helm-find-files)) (call-interactively #'helm-find-files))
((when-let* ((project-current-directory-override t) ((when-let* ((project-current-directory-override dir)
(pr (project-current t dir))) (pr (project-current t dir)))
(condition-case _ (condition-case _
(project-find-file-in nil nil pr) (project-find-file-in nil nil pr)